#[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 checked_abs(self) -> Option<PositiveI8>
pub const fn checked_neg(self) -> Option<PositiveI8>
pub const fn checked_add(self, other: Self) -> Option<Self>
pub const fn checked_sub(self, other: Self) -> Option<Self>
pub const fn checked_mul(self, other: Self) -> Option<PositiveI8>
pub const fn checked_mul_positive(self, other: PositiveI8) -> Option<Self>
pub const fn checked_div(self, other: Self) -> Option<PositiveI8>
pub const fn checked_div_euclid(self, other: Self) -> Option<PositiveI8>
pub const fn checked_rem_euclid(self, other: i8) -> Option<PositiveI8>
pub const fn saturating_abs(self) -> PositiveI8
pub const fn saturating_neg(self) -> PositiveI8
pub const fn saturating_add(self, other: Self) -> Self
pub const fn saturating_sub(self, other: Self) -> Self
pub const fn saturating_mul(self, other: Self) -> PositiveI8
pub const fn saturating_mul_positive(self, other: PositiveI8) -> Self
Trait Implementations§
Source§impl Binary for NegativeI8
impl Binary for NegativeI8
Source§impl BitAnd<NegativeI8> for PositiveI8
impl BitAnd<NegativeI8> for PositiveI8
Source§type Output = PositiveI8
type Output = PositiveI8
The resulting type after applying the
& operator.Source§impl BitAnd<PositiveI8> for NegativeI8
impl BitAnd<PositiveI8> for NegativeI8
Source§type Output = PositiveI8
type Output = PositiveI8
The resulting type after applying the
& operator.Source§impl BitAnd for NegativeI8
impl BitAnd for NegativeI8
Source§impl BitAndAssign<NegativeI8> for PositiveI8
impl BitAndAssign<NegativeI8> for PositiveI8
Source§fn bitand_assign(&mut self, rhs: NegativeI8)
fn bitand_assign(&mut self, rhs: NegativeI8)
Performs the
&= operation. Read moreSource§impl BitAndAssign for NegativeI8
impl BitAndAssign for NegativeI8
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr<NegativeI8> for PositiveI8
impl BitOr<NegativeI8> for PositiveI8
Source§type Output = NegativeI8
type Output = NegativeI8
The resulting type after applying the
| operator.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<PositiveI8> for NegativeI8
impl BitOr<PositiveI8> for NegativeI8
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<PositiveI8> for NegativeI8
impl BitOrAssign<PositiveI8> for NegativeI8
Source§fn bitor_assign(&mut self, rhs: PositiveI8)
fn bitor_assign(&mut self, rhs: PositiveI8)
Performs the
|= operation. Read moreSource§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 BitXor<NegativeI8> for PositiveI8
impl BitXor<NegativeI8> for PositiveI8
Source§type Output = NegativeI8
type Output = NegativeI8
The resulting type after applying the
^ operator.Source§impl BitXor<PositiveI8> for NegativeI8
impl BitXor<PositiveI8> for NegativeI8
Source§type Output = NegativeI8
type Output = NegativeI8
The resulting type after applying the
^ operator.Source§impl BitXor for NegativeI8
impl BitXor for NegativeI8
Source§impl BitXorAssign<PositiveI8> for NegativeI8
impl BitXorAssign<PositiveI8> for NegativeI8
Source§fn bitxor_assign(&mut self, rhs: PositiveI8)
fn bitxor_assign(&mut self, rhs: PositiveI8)
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 From<NegativeI8> for i128
impl From<NegativeI8> for i128
Source§fn from(value: NegativeI8) -> Self
fn from(value: NegativeI8) -> Self
Converts to this type from the input type.
Source§impl From<NegativeI8> for i16
impl From<NegativeI8> for i16
Source§fn from(value: NegativeI8) -> Self
fn from(value: NegativeI8) -> Self
Converts to this type from the input type.
Source§impl From<NegativeI8> for i32
impl From<NegativeI8> for i32
Source§fn from(value: NegativeI8) -> Self
fn from(value: NegativeI8) -> Self
Converts to this type from the input type.
Source§impl From<NegativeI8> for i64
impl From<NegativeI8> for i64
Source§fn from(value: NegativeI8) -> Self
fn from(value: NegativeI8) -> Self
Converts to this type from the input type.
Source§impl From<NegativeI8> for i8
impl From<NegativeI8> for i8
Source§fn from(value: NegativeI8) -> Self
fn from(value: NegativeI8) -> Self
Converts to this type from the input type.
Source§impl From<NegativeI8> for isize
impl From<NegativeI8> for isize
Source§fn from(value: NegativeI8) -> Self
fn from(value: NegativeI8) -> Self
Converts to this type from the input type.
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 Not for NegativeI8
impl Not 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