Struct sign_bound::NegativeI8
source · #[repr(C, align(1))]pub struct NegativeI8 { /* private fields */ }Implementations§
source§impl NegativeI8
impl NegativeI8
pub const BITS: u32 = 8u32
pub const MIN: Self = _
pub const MAX: Self = _
pub const fn new(value: i8) -> Option<Self>
pub const unsafe fn new_unchecked(value: i8) -> Self
pub const fn get(self) -> i8
pub const fn count_zeros(self) -> u32
pub const fn count_ones(self) -> u32
pub const fn leading_zeros(self) -> u32
pub const fn trailing_zeros(self) -> u32
pub const fn abs(self) -> PositiveI8
pub const fn unsigned_abs(self) -> u8
pub const fn checked_abs(self) -> Option<PositiveI8>
pub const fn checked_neg(self) -> Option<PositiveI8>
pub const fn checked_sub(self, other: Self) -> Option<Self>
pub const fn checked_mul(self, other: PositiveI8) -> Option<Self>
pub const fn saturating_abs(self) -> PositiveI8
pub const fn saturating_neg(self) -> PositiveI8
pub const fn saturating_sub(self, other: Self) -> Self
pub const fn saturating_mul(self, other: PositiveI8) -> Self
Trait Implementations§
source§impl Binary for NegativeI8
impl Binary for NegativeI8
source§impl BitOr<NegativeI8> for i8
impl BitOr<NegativeI8> for i8
source§type Output = NegativeI8
type Output = NegativeI8
The resulting type after applying the
| operator.source§impl BitOr<i8> for NegativeI8
impl BitOr<i8> for NegativeI8
source§impl BitOr for NegativeI8
impl BitOr for NegativeI8
source§impl BitOrAssign<i8> for NegativeI8
impl BitOrAssign<i8> for NegativeI8
source§fn bitor_assign(&mut self, rhs: i8)
fn bitor_assign(&mut self, rhs: i8)
Performs the
|= operation. Read moresource§impl BitOrAssign for NegativeI8
impl BitOrAssign for NegativeI8
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moresource§impl Clone for NegativeI8
impl Clone for NegativeI8
source§fn clone(&self) -> NegativeI8
fn clone(&self) -> NegativeI8
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for NegativeI8
impl Debug for NegativeI8
source§impl Display for NegativeI8
impl Display for NegativeI8
source§impl FromStr for NegativeI8
impl FromStr for NegativeI8
source§impl Hash for NegativeI8
impl Hash for NegativeI8
source§impl LowerHex for NegativeI8
impl LowerHex for NegativeI8
source§impl Octal for NegativeI8
impl Octal for NegativeI8
source§impl Ord for NegativeI8
impl Ord for NegativeI8
source§impl PartialEq for NegativeI8
impl PartialEq for NegativeI8
source§impl PartialOrd for NegativeI8
impl PartialOrd for NegativeI8
source§impl TryFrom<i128> for NegativeI8
impl TryFrom<i128> for NegativeI8
source§impl TryFrom<i16> for NegativeI8
impl TryFrom<i16> for NegativeI8
source§impl TryFrom<i32> for NegativeI8
impl TryFrom<i32> for NegativeI8
source§impl TryFrom<i64> for NegativeI8
impl TryFrom<i64> for NegativeI8
source§impl TryFrom<i8> for NegativeI8
impl TryFrom<i8> for NegativeI8
source§impl TryFrom<isize> for NegativeI8
impl TryFrom<isize> for NegativeI8
source§impl UpperHex for NegativeI8
impl UpperHex for NegativeI8
impl Copy for NegativeI8
impl Eq for NegativeI8
Auto Trait Implementations§
impl Freeze for NegativeI8
impl RefUnwindSafe for NegativeI8
impl Send for NegativeI8
impl Sync for NegativeI8
impl Unpin for NegativeI8
impl UnwindSafe for NegativeI8
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)