Struct range_checked::I64Bounded
source · pub struct I64Bounded<const LO: i64, const HI: i64, 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 = i64>§
pub const MIN: i64 = -9_223_372_036_854_775_808i64
pub const MAX: i64 = 9_223_372_036_854_775_807i64
pub const BITS: u32 = 64u32
Trait Implementations§
source§impl<const LO: i64, const HI: i64, const INCLUSIVE: bool> Deref for I64Bounded<LO, HI, INCLUSIVE>
impl<const LO: i64, const HI: i64, const INCLUSIVE: bool> Deref for I64Bounded<LO, HI, INCLUSIVE>
Auto Trait Implementations§
impl<const LO: i64, const HI: i64, const INCLUSIVE: bool> RefUnwindSafe for I64Bounded<LO, HI, INCLUSIVE>
impl<const LO: i64, const HI: i64, const INCLUSIVE: bool> Send for I64Bounded<LO, HI, INCLUSIVE>
impl<const LO: i64, const HI: i64, const INCLUSIVE: bool> Sync for I64Bounded<LO, HI, INCLUSIVE>
impl<const LO: i64, const HI: i64, const INCLUSIVE: bool> Unpin for I64Bounded<LO, HI, INCLUSIVE>
impl<const LO: i64, const HI: i64, const INCLUSIVE: bool> UnwindSafe for I64Bounded<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