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