Struct sign_bound::NegativeI32
source · #[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 abs(self) -> PositiveI32
pub const fn unsigned_abs(self) -> u32
pub const fn checked_abs(self) -> Option<PositiveI32>
pub const fn checked_neg(self) -> Option<PositiveI32>
pub const fn checked_sub(self, other: Self) -> Option<Self>
pub const fn checked_mul(self, other: PositiveI32) -> Option<Self>
pub const fn saturating_abs(self) -> PositiveI32
pub const fn saturating_neg(self) -> PositiveI32
pub const fn saturating_sub(self, other: Self) -> Self
pub const fn saturating_mul(self, other: PositiveI32) -> Self
Trait Implementations§
source§impl Binary for NegativeI32
impl Binary for NegativeI32
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<i32> for NegativeI32
impl BitOr<i32> for NegativeI32
source§impl BitOr for NegativeI32
impl BitOr for NegativeI32
source§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 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 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 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<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
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)