Enum chain_addr::Discrimination
source · pub enum Discrimination {
Production,
Test,
}
Variants§
Trait Implementations§
source§impl Arbitrary for Discrimination
impl Arbitrary for Discrimination
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<Discrimination>
type Strategy = BoxedStrategy<Discrimination>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl Arbitrary for Discrimination
impl Arbitrary for Discrimination
source§impl Clone for Discrimination
impl Clone for Discrimination
source§fn clone(&self) -> Discrimination
fn clone(&self) -> Discrimination
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Discrimination
impl Debug for Discrimination
source§impl Display for Discrimination
impl Display for Discrimination
source§impl FromStr for Discrimination
impl FromStr for Discrimination
source§impl Hash for Discrimination
impl Hash for Discrimination
source§impl Ord for Discrimination
impl Ord for Discrimination
source§fn cmp(&self, other: &Discrimination) -> Ordering
fn cmp(&self, other: &Discrimination) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<Discrimination> for Discrimination
impl PartialEq<Discrimination> for Discrimination
source§fn eq(&self, other: &Discrimination) -> bool
fn eq(&self, other: &Discrimination) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Discrimination> for Discrimination
impl PartialOrd<Discrimination> for Discrimination
source§fn partial_cmp(&self, other: &Discrimination) -> Option<Ordering>
fn partial_cmp(&self, other: &Discrimination) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Discrimination
impl Serialize for Discrimination
impl Copy for Discrimination
impl Eq for Discrimination
impl StructuralEq for Discrimination
impl StructuralPartialEq for Discrimination
Auto Trait Implementations§
impl RefUnwindSafe for Discrimination
impl Send for Discrimination
impl Sync for Discrimination
impl Unpin for Discrimination
impl UnwindSafe for Discrimination
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more