pub struct NumDataSignatures(NonZeroUsize);Expand description
The required number of data signatures for an artifact.
Tuple Fields§
§0: NonZeroUsizeImplementations§
Source§impl NumDataSignatures
impl NumDataSignatures
Sourcepub fn new(num: NonZeroUsize) -> Self
pub fn new(num: NonZeroUsize) -> Self
Creates a new NumDataSignatures from a NonZeroUsize.
Sourcepub fn get(&self) -> NonZeroUsize
pub fn get(&self) -> NonZeroUsize
Returns the inner NonZeroUsize.
Trait Implementations§
Source§impl Clone for NumDataSignatures
impl Clone for NumDataSignatures
Source§fn clone(&self) -> NumDataSignatures
fn clone(&self) -> NumDataSignatures
Returns a duplicate 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 NumDataSignatures
impl Debug for NumDataSignatures
Source§impl Default for NumDataSignatures
impl Default for NumDataSignatures
Source§impl<'de> Deserialize<'de> for NumDataSignatures
impl<'de> Deserialize<'de> for NumDataSignatures
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 Display for NumDataSignatures
impl Display for NumDataSignatures
Source§impl PartialEq for NumDataSignatures
impl PartialEq for NumDataSignatures
Source§impl Serialize for NumDataSignatures
impl Serialize for NumDataSignatures
impl Copy for NumDataSignatures
impl Eq for NumDataSignatures
impl StructuralPartialEq for NumDataSignatures
Auto Trait Implementations§
impl Freeze for NumDataSignatures
impl RefUnwindSafe for NumDataSignatures
impl Send for NumDataSignatures
impl Sync for NumDataSignatures
impl Unpin for NumDataSignatures
impl UnwindSafe for NumDataSignatures
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more