Struct range_checked::I8Bounded
source · pub struct I8Bounded<const LO: i8, const HI: i8, 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 = i8>§
pub const MIN: i8 = -128i8
pub const MAX: i8 = 127i8
pub const BITS: u32 = 8u32
Trait Implementations§
source§impl<const LO: i8, const HI: i8, const INCLUSIVE: bool> Deref for I8Bounded<LO, HI, INCLUSIVE>
impl<const LO: i8, const HI: i8, const INCLUSIVE: bool> Deref for I8Bounded<LO, HI, INCLUSIVE>
Auto Trait Implementations§
impl<const LO: i8, const HI: i8, const INCLUSIVE: bool> RefUnwindSafe for I8Bounded<LO, HI, INCLUSIVE>
impl<const LO: i8, const HI: i8, const INCLUSIVE: bool> Send for I8Bounded<LO, HI, INCLUSIVE>
impl<const LO: i8, const HI: i8, const INCLUSIVE: bool> Sync for I8Bounded<LO, HI, INCLUSIVE>
impl<const LO: i8, const HI: i8, const INCLUSIVE: bool> Unpin for I8Bounded<LO, HI, INCLUSIVE>
impl<const LO: i8, const HI: i8, const INCLUSIVE: bool> UnwindSafe for I8Bounded<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