pub struct ConfigNonZeroUsize(/* private fields */);Expand description
A usize configuration value that rejects zero when set from strings.
Use this for options where zero is never a meaningful runtime value.
Invalid values return a configuration error through ConfigField.
Implementations§
Trait Implementations§
Source§impl Clone for ConfigNonZeroUsize
impl Clone for ConfigNonZeroUsize
Source§fn clone(&self) -> ConfigNonZeroUsize
fn clone(&self) -> ConfigNonZeroUsize
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConfigField for ConfigNonZeroUsize
impl ConfigField for ConfigNonZeroUsize
impl Copy for ConfigNonZeroUsize
Source§impl Debug for ConfigNonZeroUsize
impl Debug for ConfigNonZeroUsize
Source§impl Display for ConfigNonZeroUsize
impl Display for ConfigNonZeroUsize
impl Eq for ConfigNonZeroUsize
Source§impl From<ConfigNonZeroUsize> for usize
impl From<ConfigNonZeroUsize> for usize
Source§fn from(value: ConfigNonZeroUsize) -> Self
fn from(value: ConfigNonZeroUsize) -> Self
Converts to this type from the input type.
Source§impl FromStr for ConfigNonZeroUsize
impl FromStr for ConfigNonZeroUsize
Source§impl Hash for ConfigNonZeroUsize
impl Hash for ConfigNonZeroUsize
Source§impl Ord for ConfigNonZeroUsize
impl Ord for ConfigNonZeroUsize
Source§fn cmp(&self, other: &ConfigNonZeroUsize) -> Ordering
fn cmp(&self, other: &ConfigNonZeroUsize) -> Ordering
1.21.0 (const: unstable) · 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 ConfigNonZeroUsize
impl PartialEq for ConfigNonZeroUsize
Source§impl PartialOrd for ConfigNonZeroUsize
impl PartialOrd for ConfigNonZeroUsize
impl StructuralPartialEq for ConfigNonZeroUsize
Auto Trait Implementations§
impl Freeze for ConfigNonZeroUsize
impl RefUnwindSafe for ConfigNonZeroUsize
impl Send for ConfigNonZeroUsize
impl Sync for ConfigNonZeroUsize
impl Unpin for ConfigNonZeroUsize
impl UnsafeUnpin for ConfigNonZeroUsize
impl UnwindSafe for ConfigNonZeroUsize
Blanket Implementations§
impl<T> Allocation for T
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.