Skip to main content

NonZeroBoxedUint

Type Alias NonZeroBoxedUint 

Source
pub type NonZeroBoxedUint = NonZero<BoxedUint>;
Expand description

Non-zero boxed unsigned integer.

Aliased Type§

#[repr(transparent)]
pub struct NonZeroBoxedUint(BoxedUint);

Tuple Fields§

§0: BoxedUint

Implementations§

Source§

impl NonZeroBoxedUint

Source

pub const fn as_uint_ref(&self) -> &NonZeroUintRef

Borrow this NonZeroBoxedUint as a &NonZeroUintRef.

Trait Implementations§

Source§

impl AsRef<NonZero<UintRef>> for NonZeroBoxedUint

Available on crate feature alloc only.
Source§

fn as_ref(&self) -> &NonZeroUintRef

Converts this type into a shared reference of the (usually inferred) input type.