Struct range_checked::U64Bounded
source · pub struct U64Bounded<const LO: u64, const HI: u64, 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 = u64>§
pub const MIN: u64 = 0u64
pub const MAX: u64 = 18_446_744_073_709_551_615u64
pub const BITS: u32 = 64u32
Trait Implementations§
source§impl<const LO: u64, const HI: u64, const INCLUSIVE: bool> Deref for U64Bounded<LO, HI, INCLUSIVE>
impl<const LO: u64, const HI: u64, const INCLUSIVE: bool> Deref for U64Bounded<LO, HI, INCLUSIVE>
Auto Trait Implementations§
impl<const LO: u64, const HI: u64, const INCLUSIVE: bool> RefUnwindSafe for U64Bounded<LO, HI, INCLUSIVE>
impl<const LO: u64, const HI: u64, const INCLUSIVE: bool> Send for U64Bounded<LO, HI, INCLUSIVE>
impl<const LO: u64, const HI: u64, const INCLUSIVE: bool> Sync for U64Bounded<LO, HI, INCLUSIVE>
impl<const LO: u64, const HI: u64, const INCLUSIVE: bool> Unpin for U64Bounded<LO, HI, INCLUSIVE>
impl<const LO: u64, const HI: u64, const INCLUSIVE: bool> UnwindSafe for U64Bounded<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