Struct range_checked::U32Bounded
source · pub struct U32Bounded<const LO: u32, const HI: u32, const INCLUSIVE: bool>(/* private fields */);Expand description
Implements the TryFrom type, which attempts to convert to the contained type, returning an error if the input is out of bounds.
This type also implements [Deref] into the contained type.
Implementations§
Methods from Deref<Target = u32>§
pub const MIN: u32 = 0u32
pub const MAX: u32 = 4_294_967_295u32
pub const BITS: u32 = 32u32
Trait Implementations§
source§impl<const LO: u32, const HI: u32, const INCLUSIVE: bool> Deref for U32Bounded<LO, HI, INCLUSIVE>
impl<const LO: u32, const HI: u32, const INCLUSIVE: bool> Deref for U32Bounded<LO, HI, INCLUSIVE>
Auto Trait Implementations§
impl<const LO: u32, const HI: u32, const INCLUSIVE: bool> RefUnwindSafe for U32Bounded<LO, HI, INCLUSIVE>
impl<const LO: u32, const HI: u32, const INCLUSIVE: bool> Send for U32Bounded<LO, HI, INCLUSIVE>
impl<const LO: u32, const HI: u32, const INCLUSIVE: bool> Sync for U32Bounded<LO, HI, INCLUSIVE>
impl<const LO: u32, const HI: u32, const INCLUSIVE: bool> Unpin for U32Bounded<LO, HI, INCLUSIVE>
impl<const LO: u32, const HI: u32, const INCLUSIVE: bool> UnwindSafe for U32Bounded<LO, HI, INCLUSIVE>
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