#[repr(C, align(4))]pub struct NegativeIsize { /* private fields */ }Implementations§
Source§impl NegativeIsize
impl NegativeIsize
pub const BITS: u32 = 32u32
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 checked_abs(self) -> Option<PositiveIsize>
pub const fn checked_neg(self) -> Option<PositiveIsize>
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<PositiveIsize>
pub const fn checked_mul_positive(self, other: PositiveIsize) -> Option<Self>
pub const fn checked_div(self, other: Self) -> Option<PositiveIsize>
pub const fn checked_div_euclid(self, other: Self) -> Option<PositiveIsize>
pub const fn checked_rem_euclid(self, other: isize) -> Option<PositiveIsize>
pub const fn saturating_abs(self) -> PositiveIsize
pub const fn saturating_neg(self) -> PositiveIsize
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) -> PositiveIsize
pub const fn saturating_mul_positive(self, other: PositiveIsize) -> Self
Trait Implementations§
Source§impl Binary for NegativeIsize
impl Binary for NegativeIsize
Source§impl BitAnd<NegativeIsize> for PositiveIsize
impl BitAnd<NegativeIsize> for PositiveIsize
Source§type Output = PositiveIsize
type Output = PositiveIsize
The resulting type after applying the
& operator.Source§impl BitAnd<PositiveIsize> for NegativeIsize
impl BitAnd<PositiveIsize> for NegativeIsize
Source§type Output = PositiveIsize
type Output = PositiveIsize
The resulting type after applying the
& operator.Source§impl BitAnd for NegativeIsize
impl BitAnd for NegativeIsize
Source§impl BitAndAssign<NegativeIsize> for PositiveIsize
impl BitAndAssign<NegativeIsize> for PositiveIsize
Source§fn bitand_assign(&mut self, rhs: NegativeIsize)
fn bitand_assign(&mut self, rhs: NegativeIsize)
Performs the
&= operation. Read moreSource§impl BitAndAssign for NegativeIsize
impl BitAndAssign for NegativeIsize
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr<NegativeIsize> for PositiveIsize
impl BitOr<NegativeIsize> for PositiveIsize
Source§type Output = NegativeIsize
type Output = NegativeIsize
The resulting type after applying the
| operator.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<PositiveIsize> for NegativeIsize
impl BitOr<PositiveIsize> for NegativeIsize
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<PositiveIsize> for NegativeIsize
impl BitOrAssign<PositiveIsize> for NegativeIsize
Source§fn bitor_assign(&mut self, rhs: PositiveIsize)
fn bitor_assign(&mut self, rhs: PositiveIsize)
Performs the
|= operation. Read moreSource§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 BitXor<NegativeIsize> for PositiveIsize
impl BitXor<NegativeIsize> for PositiveIsize
Source§type Output = NegativeIsize
type Output = NegativeIsize
The resulting type after applying the
^ operator.Source§impl BitXor<PositiveIsize> for NegativeIsize
impl BitXor<PositiveIsize> for NegativeIsize
Source§type Output = NegativeIsize
type Output = NegativeIsize
The resulting type after applying the
^ operator.Source§impl BitXor for NegativeIsize
impl BitXor for NegativeIsize
Source§impl BitXorAssign<PositiveIsize> for NegativeIsize
impl BitXorAssign<PositiveIsize> for NegativeIsize
Source§fn bitxor_assign(&mut self, rhs: PositiveIsize)
fn bitxor_assign(&mut self, rhs: PositiveIsize)
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 From<NegativeIsize> for isize
impl From<NegativeIsize> for isize
Source§fn from(value: NegativeIsize) -> Self
fn from(value: NegativeIsize) -> Self
Converts to this type from the input type.
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 Not for NegativeIsize
impl Not 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<NegativeIsize> for i128
impl TryFrom<NegativeIsize> for i128
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<NegativeIsize> for i16
impl TryFrom<NegativeIsize> for i16
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<NegativeIsize> for i32
impl TryFrom<NegativeIsize> for i32
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<NegativeIsize> for i64
impl TryFrom<NegativeIsize> for i64
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<NegativeIsize> for i8
impl TryFrom<NegativeIsize> for i8
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
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