#[repr(C, align(4))]pub struct NegativeI32 { /* private fields */ }Implementations§
Source§impl NegativeI32
impl NegativeI32
pub const BITS: u32 = 32u32
pub const MIN: Self = _
pub const MAX: Self = _
pub const fn new(value: i32) -> Option<Self>
pub const unsafe fn new_unchecked(value: i32) -> Self
pub const fn get(self) -> i32
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<PositiveI32>
pub const fn checked_neg(self) -> Option<PositiveI32>
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<PositiveI32>
pub const fn checked_mul_positive(self, other: PositiveI32) -> Option<Self>
pub const fn checked_div(self, other: Self) -> Option<PositiveI32>
pub const fn checked_div_euclid(self, other: Self) -> Option<PositiveI32>
pub const fn checked_rem_euclid(self, other: i32) -> Option<PositiveI32>
pub const fn saturating_abs(self) -> PositiveI32
pub const fn saturating_neg(self) -> PositiveI32
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) -> PositiveI32
pub const fn saturating_mul_positive(self, other: PositiveI32) -> Self
Trait Implementations§
Source§impl Binary for NegativeI32
impl Binary for NegativeI32
Source§impl BitAnd<NegativeI32> for PositiveI32
impl BitAnd<NegativeI32> for PositiveI32
Source§type Output = PositiveI32
type Output = PositiveI32
The resulting type after applying the
& operator.Source§impl BitAnd<PositiveI32> for NegativeI32
impl BitAnd<PositiveI32> for NegativeI32
Source§type Output = PositiveI32
type Output = PositiveI32
The resulting type after applying the
& operator.Source§impl BitAnd for NegativeI32
impl BitAnd for NegativeI32
Source§impl BitAndAssign<NegativeI32> for PositiveI32
impl BitAndAssign<NegativeI32> for PositiveI32
Source§fn bitand_assign(&mut self, rhs: NegativeI32)
fn bitand_assign(&mut self, rhs: NegativeI32)
Performs the
&= operation. Read moreSource§impl BitAndAssign for NegativeI32
impl BitAndAssign for NegativeI32
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr<NegativeI32> for PositiveI32
impl BitOr<NegativeI32> for PositiveI32
Source§type Output = NegativeI32
type Output = NegativeI32
The resulting type after applying the
| operator.Source§impl BitOr<NegativeI32> for i32
impl BitOr<NegativeI32> for i32
Source§type Output = NegativeI32
type Output = NegativeI32
The resulting type after applying the
| operator.Source§impl BitOr<PositiveI32> for NegativeI32
impl BitOr<PositiveI32> for NegativeI32
Source§type Output = NegativeI32
type Output = NegativeI32
The resulting type after applying the
| operator.Source§impl BitOr<i32> for NegativeI32
impl BitOr<i32> for NegativeI32
Source§impl BitOr for NegativeI32
impl BitOr for NegativeI32
Source§impl BitOrAssign<PositiveI32> for NegativeI32
impl BitOrAssign<PositiveI32> for NegativeI32
Source§fn bitor_assign(&mut self, rhs: PositiveI32)
fn bitor_assign(&mut self, rhs: PositiveI32)
Performs the
|= operation. Read moreSource§impl BitOrAssign<i32> for NegativeI32
impl BitOrAssign<i32> for NegativeI32
Source§fn bitor_assign(&mut self, rhs: i32)
fn bitor_assign(&mut self, rhs: i32)
Performs the
|= operation. Read moreSource§impl BitOrAssign for NegativeI32
impl BitOrAssign for NegativeI32
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor<NegativeI32> for PositiveI32
impl BitXor<NegativeI32> for PositiveI32
Source§type Output = NegativeI32
type Output = NegativeI32
The resulting type after applying the
^ operator.Source§impl BitXor<PositiveI32> for NegativeI32
impl BitXor<PositiveI32> for NegativeI32
Source§type Output = NegativeI32
type Output = NegativeI32
The resulting type after applying the
^ operator.Source§impl BitXor for NegativeI32
impl BitXor for NegativeI32
Source§impl BitXorAssign<PositiveI32> for NegativeI32
impl BitXorAssign<PositiveI32> for NegativeI32
Source§fn bitxor_assign(&mut self, rhs: PositiveI32)
fn bitxor_assign(&mut self, rhs: PositiveI32)
Performs the
^= operation. Read moreSource§impl Clone for NegativeI32
impl Clone for NegativeI32
Source§fn clone(&self) -> NegativeI32
fn clone(&self) -> NegativeI32
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 NegativeI32
impl Debug for NegativeI32
Source§impl Display for NegativeI32
impl Display for NegativeI32
Source§impl From<NegativeI32> for i128
impl From<NegativeI32> for i128
Source§fn from(value: NegativeI32) -> Self
fn from(value: NegativeI32) -> Self
Converts to this type from the input type.
Source§impl From<NegativeI32> for i32
impl From<NegativeI32> for i32
Source§fn from(value: NegativeI32) -> Self
fn from(value: NegativeI32) -> Self
Converts to this type from the input type.
Source§impl From<NegativeI32> for i64
impl From<NegativeI32> for i64
Source§fn from(value: NegativeI32) -> Self
fn from(value: NegativeI32) -> Self
Converts to this type from the input type.
Source§impl FromStr for NegativeI32
impl FromStr for NegativeI32
Source§impl Hash for NegativeI32
impl Hash for NegativeI32
Source§impl LowerHex for NegativeI32
impl LowerHex for NegativeI32
Source§impl Not for NegativeI32
impl Not for NegativeI32
Source§impl Octal for NegativeI32
impl Octal for NegativeI32
Source§impl Ord for NegativeI32
impl Ord for NegativeI32
Source§impl PartialEq for NegativeI32
impl PartialEq for NegativeI32
Source§impl PartialOrd for NegativeI32
impl PartialOrd for NegativeI32
Source§impl TryFrom<NegativeI32> for i16
impl TryFrom<NegativeI32> for i16
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<NegativeI32> for i8
impl TryFrom<NegativeI32> for i8
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<NegativeI32> for isize
impl TryFrom<NegativeI32> for isize
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<i128> for NegativeI32
impl TryFrom<i128> for NegativeI32
Source§impl TryFrom<i16> for NegativeI32
impl TryFrom<i16> for NegativeI32
Source§impl TryFrom<i32> for NegativeI32
impl TryFrom<i32> for NegativeI32
Source§impl TryFrom<i64> for NegativeI32
impl TryFrom<i64> for NegativeI32
Source§impl TryFrom<i8> for NegativeI32
impl TryFrom<i8> for NegativeI32
Source§impl TryFrom<isize> for NegativeI32
impl TryFrom<isize> for NegativeI32
Source§impl UpperHex for NegativeI32
impl UpperHex for NegativeI32
impl Copy for NegativeI32
impl Eq for NegativeI32
Auto Trait Implementations§
impl Freeze for NegativeI32
impl RefUnwindSafe for NegativeI32
impl Send for NegativeI32
impl Sync for NegativeI32
impl Unpin for NegativeI32
impl UnwindSafe for NegativeI32
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