pub struct NonZeroThresholdU8<Kind> { /* private fields */ }
Expand description
A type representing a u8
threshold, typically used for signatures.
Serialization for this type ensures that the threshold is never 0.
This type has a phantom type marker so that thresholds of different types
can be distinguished. The intended use is that a new empty type is defined
to serve as marker, and then a type alias. See AccountThreshold
for an
example.
Implementations§
Trait Implementations§
source§impl<Kind> Clone for NonZeroThresholdU8<Kind>
impl<Kind> Clone for NonZeroThresholdU8<Kind>
source§impl<Kind: Debug> Debug for NonZeroThresholdU8<Kind>
impl<Kind: Debug> Debug for NonZeroThresholdU8<Kind>
source§impl<Kind> Deserial for NonZeroThresholdU8<Kind>
impl<Kind> Deserial for NonZeroThresholdU8<Kind>
source§impl<'de, Kind> Deserialize<'de> for NonZeroThresholdU8<Kind>where
Kind: Sized,
impl<'de, Kind> Deserialize<'de> for NonZeroThresholdU8<Kind>where
Kind: Sized,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<Kind> From<NonZeroThresholdU8<Kind>> for u8
impl<Kind> From<NonZeroThresholdU8<Kind>> for u8
source§fn from(value: NonZeroThresholdU8<Kind>) -> Self
fn from(value: NonZeroThresholdU8<Kind>) -> Self
Converts to this type from the input type.
source§impl<Kind> Hash for NonZeroThresholdU8<Kind>
impl<Kind> Hash for NonZeroThresholdU8<Kind>
source§impl<Kind> Ord for NonZeroThresholdU8<Kind>
impl<Kind> Ord for NonZeroThresholdU8<Kind>
source§impl<Kind> PartialEq<u8> for NonZeroThresholdU8<Kind>
impl<Kind> PartialEq<u8> for NonZeroThresholdU8<Kind>
source§impl<Kind> PartialEq for NonZeroThresholdU8<Kind>
impl<Kind> PartialEq for NonZeroThresholdU8<Kind>
source§impl<Kind> PartialOrd<u8> for NonZeroThresholdU8<Kind>
impl<Kind> PartialOrd<u8> for NonZeroThresholdU8<Kind>
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<Kind> PartialOrd for NonZeroThresholdU8<Kind>
impl<Kind> PartialOrd for NonZeroThresholdU8<Kind>
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<Kind> SchemaType for NonZeroThresholdU8<Kind>
impl<Kind> SchemaType for NonZeroThresholdU8<Kind>
source§impl<Kind> Serial for NonZeroThresholdU8<Kind>
impl<Kind> Serial for NonZeroThresholdU8<Kind>
source§impl<Kind> Serialize for NonZeroThresholdU8<Kind>where
Kind: Sized,
impl<Kind> Serialize for NonZeroThresholdU8<Kind>where
Kind: Sized,
source§impl<Kind> TryFrom<u8> for NonZeroThresholdU8<Kind>
impl<Kind> TryFrom<u8> for NonZeroThresholdU8<Kind>
impl<Kind> Copy for NonZeroThresholdU8<Kind>
impl<Kind> Eq for NonZeroThresholdU8<Kind>
Auto Trait Implementations§
impl<Kind> Freeze for NonZeroThresholdU8<Kind>
impl<Kind> RefUnwindSafe for NonZeroThresholdU8<Kind>where
Kind: RefUnwindSafe,
impl<Kind> Send for NonZeroThresholdU8<Kind>where
Kind: Send,
impl<Kind> Sync for NonZeroThresholdU8<Kind>where
Kind: Sync,
impl<Kind> Unpin for NonZeroThresholdU8<Kind>where
Kind: Unpin,
impl<Kind> UnwindSafe for NonZeroThresholdU8<Kind>where
Kind: UnwindSafe,
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