Struct sign_bound::NegativeIsize
source · #[repr(C, align(8))]pub struct NegativeIsize { /* private fields */ }Implementations§
source§impl NegativeIsize
impl NegativeIsize
pub const BITS: u32 = 64u32
pub const MIN: Self = _
pub const MAX: Self = _
pub const fn new(value: isize) -> Option<Self>
pub const unsafe fn new_unchecked(value: isize) -> Self
pub const fn get(self) -> isize
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) -> PositiveIsize
pub const fn unsigned_abs(self) -> usize
pub const fn checked_abs(self) -> Option<PositiveIsize>
pub const fn checked_neg(self) -> Option<PositiveIsize>
pub const fn checked_sub(self, other: Self) -> Option<Self>
pub const fn checked_mul(self, other: PositiveIsize) -> Option<Self>
pub const fn saturating_abs(self) -> PositiveIsize
pub const fn saturating_neg(self) -> PositiveIsize
pub const fn saturating_sub(self, other: Self) -> Self
pub const fn saturating_mul(self, other: PositiveIsize) -> Self
Trait Implementations§
source§impl Binary for NegativeIsize
impl Binary for NegativeIsize
source§impl BitOr<NegativeIsize> for isize
impl BitOr<NegativeIsize> for isize
source§type Output = NegativeIsize
type Output = NegativeIsize
The resulting type after applying the
| operator.source§impl BitOr<isize> for NegativeIsize
impl BitOr<isize> for NegativeIsize
source§impl BitOr for NegativeIsize
impl BitOr for NegativeIsize
source§impl BitOrAssign<isize> for NegativeIsize
impl BitOrAssign<isize> for NegativeIsize
source§fn bitor_assign(&mut self, rhs: isize)
fn bitor_assign(&mut self, rhs: isize)
Performs the
|= operation. Read moresource§impl BitOrAssign for NegativeIsize
impl BitOrAssign for NegativeIsize
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moresource§impl Clone for NegativeIsize
impl Clone for NegativeIsize
source§fn clone(&self) -> NegativeIsize
fn clone(&self) -> NegativeIsize
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 NegativeIsize
impl Debug for NegativeIsize
source§impl Display for NegativeIsize
impl Display for NegativeIsize
source§impl FromStr for NegativeIsize
impl FromStr for NegativeIsize
source§impl Hash for NegativeIsize
impl Hash for NegativeIsize
source§impl LowerHex for NegativeIsize
impl LowerHex for NegativeIsize
source§impl Octal for NegativeIsize
impl Octal for NegativeIsize
source§impl Ord for NegativeIsize
impl Ord for NegativeIsize
source§impl PartialEq for NegativeIsize
impl PartialEq for NegativeIsize
source§impl PartialOrd for NegativeIsize
impl PartialOrd for NegativeIsize
source§impl TryFrom<i128> for NegativeIsize
impl TryFrom<i128> for NegativeIsize
source§impl TryFrom<i16> for NegativeIsize
impl TryFrom<i16> for NegativeIsize
source§impl TryFrom<i32> for NegativeIsize
impl TryFrom<i32> for NegativeIsize
source§impl TryFrom<i64> for NegativeIsize
impl TryFrom<i64> for NegativeIsize
source§impl TryFrom<i8> for NegativeIsize
impl TryFrom<i8> for NegativeIsize
source§impl TryFrom<isize> for NegativeIsize
impl TryFrom<isize> for NegativeIsize
source§impl UpperHex for NegativeIsize
impl UpperHex for NegativeIsize
impl Copy for NegativeIsize
impl Eq for NegativeIsize
Auto Trait Implementations§
impl Freeze for NegativeIsize
impl RefUnwindSafe for NegativeIsize
impl Send for NegativeIsize
impl Sync for NegativeIsize
impl Unpin for NegativeIsize
impl UnwindSafe for NegativeIsize
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)