Struct bpstd::InvalidParityValue 
source · pub struct InvalidParityValue(pub u8);Expand description
invalid parity value {0} - must be 0 or 1
Tuple Fields§
§0: u8Trait Implementations§
source§impl Clone for InvalidParityValue
 
impl Clone for InvalidParityValue
source§fn clone(&self) -> InvalidParityValue
 
fn clone(&self) -> InvalidParityValue
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 InvalidParityValue
 
impl Debug for InvalidParityValue
source§impl Display for InvalidParityValue
 
impl Display for InvalidParityValue
source§impl Error for InvalidParityValue
 
impl Error for InvalidParityValue
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
 
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Hash for InvalidParityValue
 
impl Hash for InvalidParityValue
source§impl Ord for InvalidParityValue
 
impl Ord for InvalidParityValue
source§fn cmp(&self, other: &InvalidParityValue) -> Ordering
 
fn cmp(&self, other: &InvalidParityValue) -> 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 for InvalidParityValue
 
impl PartialEq for InvalidParityValue
source§fn eq(&self, other: &InvalidParityValue) -> bool
 
fn eq(&self, other: &InvalidParityValue) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd for InvalidParityValue
 
impl PartialOrd for InvalidParityValue
source§fn partial_cmp(&self, other: &InvalidParityValue) -> Option<Ordering>
 
fn partial_cmp(&self, other: &InvalidParityValue) -> 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 moreimpl Copy for InvalidParityValue
impl Eq for InvalidParityValue
impl StructuralEq for InvalidParityValue
impl StructuralPartialEq for InvalidParityValue
Auto Trait Implementations§
impl RefUnwindSafe for InvalidParityValue
impl Send for InvalidParityValue
impl Sync for InvalidParityValue
impl Unpin for InvalidParityValue
impl UnwindSafe for InvalidParityValue
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
§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.