Struct range_checked::I32Bounded
source · pub struct I32Bounded<const LO: i32, const HI: i32, 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 = i32>§
pub const MIN: i32 = -2_147_483_648i32
pub const MAX: i32 = 2_147_483_647i32
pub const BITS: u32 = 32u32
Trait Implementations§
source§impl<const LO: i32, const HI: i32, const INCLUSIVE: bool> Deref for I32Bounded<LO, HI, INCLUSIVE>
impl<const LO: i32, const HI: i32, const INCLUSIVE: bool> Deref for I32Bounded<LO, HI, INCLUSIVE>
Auto Trait Implementations§
impl<const LO: i32, const HI: i32, const INCLUSIVE: bool> RefUnwindSafe for I32Bounded<LO, HI, INCLUSIVE>
impl<const LO: i32, const HI: i32, const INCLUSIVE: bool> Send for I32Bounded<LO, HI, INCLUSIVE>
impl<const LO: i32, const HI: i32, const INCLUSIVE: bool> Sync for I32Bounded<LO, HI, INCLUSIVE>
impl<const LO: i32, const HI: i32, const INCLUSIVE: bool> Unpin for I32Bounded<LO, HI, INCLUSIVE>
impl<const LO: i32, const HI: i32, const INCLUSIVE: bool> UnwindSafe for I32Bounded<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