pub struct NonZeroUsize(/* private fields */);Implementations§
Trait Implementations§
Source§impl AttrValue for NonZeroUsize
impl AttrValue for NonZeroUsize
Source§impl Clone for NonZeroUsize
impl Clone for NonZeroUsize
Source§fn clone(&self) -> NonZeroUsize
fn clone(&self) -> NonZeroUsize
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 NonZeroUsize
impl Debug for NonZeroUsize
Source§impl<'de> Deserialize<'de> for NonZeroUsize
impl<'de> Deserialize<'de> for NonZeroUsize
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 NonZeroUsize
impl Display for NonZeroUsize
Source§impl From<NonZero<usize>> for NonZeroUsize
impl From<NonZero<usize>> for NonZeroUsize
Source§fn from(value: NonZeroUsize) -> Self
fn from(value: NonZeroUsize) -> Self
Converts to this type from the input type.
Source§impl From<NonZeroUsize> for NonZeroUsize
impl From<NonZeroUsize> for NonZeroUsize
Source§fn from(value: NonZeroUsize) -> Self
fn from(value: NonZeroUsize) -> Self
Converts to this type from the input type.
Source§impl From<NonZeroUsize> for usize
impl From<NonZeroUsize> for usize
Source§fn from(value: NonZeroUsize) -> Self
fn from(value: NonZeroUsize) -> Self
Converts to this type from the input type.
Source§impl Named for NonZeroUsize
impl Named for NonZeroUsize
Source§fn typename() -> &'static str
fn typename() -> &'static str
The globally unique type name for the type.
This should typically be the fully qualified Rust name of the type.
§fn typeid() -> TypeId
fn typeid() -> TypeId
The TypeId for this type. TypeIds are unique only within a binary,
and should not be used for global identification.
Source§impl PartialEq for NonZeroUsize
impl PartialEq for NonZeroUsize
Source§impl Serialize for NonZeroUsize
impl Serialize for NonZeroUsize
Source§impl TryFrom<usize> for NonZeroUsize
impl TryFrom<usize> for NonZeroUsize
impl Copy for NonZeroUsize
impl Eq for NonZeroUsize
impl StructuralPartialEq for NonZeroUsize
Auto Trait Implementations§
impl Freeze for NonZeroUsize
impl RefUnwindSafe for NonZeroUsize
impl Send for NonZeroUsize
impl Sync for NonZeroUsize
impl Unpin for NonZeroUsize
impl UnsafeUnpin for NonZeroUsize
impl UnwindSafe for NonZeroUsize
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more