pub struct NonZeroThreadCount(/* private fields */);Expand description
Thread count that is at least one.
Implementations§
Trait Implementations§
Source§impl Clone for NonZeroThreadCount
impl Clone for NonZeroThreadCount
Source§fn clone(&self) -> NonZeroThreadCount
fn clone(&self) -> NonZeroThreadCount
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 moreimpl Copy for NonZeroThreadCount
Source§impl Debug for NonZeroThreadCount
impl Debug for NonZeroThreadCount
impl Eq for NonZeroThreadCount
Source§impl Hash for NonZeroThreadCount
impl Hash for NonZeroThreadCount
Source§impl Ord for NonZeroThreadCount
impl Ord for NonZeroThreadCount
Source§fn cmp(&self, other: &NonZeroThreadCount) -> Ordering
fn cmp(&self, other: &NonZeroThreadCount) -> 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 NonZeroThreadCount
impl PartialEq for NonZeroThreadCount
Source§impl PartialOrd for NonZeroThreadCount
impl PartialOrd for NonZeroThreadCount
impl StructuralPartialEq for NonZeroThreadCount
Auto Trait Implementations§
impl Freeze for NonZeroThreadCount
impl RefUnwindSafe for NonZeroThreadCount
impl Send for NonZeroThreadCount
impl Sync for NonZeroThreadCount
impl Unpin for NonZeroThreadCount
impl UnsafeUnpin for NonZeroThreadCount
impl UnwindSafe for NonZeroThreadCount
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