#[repr(C, align(8))]pub struct PositiveI64 { /* private fields */ }Implementations§
Source§impl PositiveI64
impl PositiveI64
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 is_power_of_two(self) -> bool
pub const fn ilog2(self) -> u32
pub const fn ilog10(self) -> u32
pub const fn checked_neg(self) -> Option<NegativeI64>
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<Self>
pub const fn checked_div(self, other: Self) -> Option<Self>
pub const fn checked_rem(self, other: Self) -> Option<Self>
pub const fn checked_div_unsigned(self, other: u64) -> Option<Self>
pub const fn checked_rem_unsigned(self, other: u64) -> Option<Self>
pub const fn checked_pow(self, other: u32) -> Option<Self>
pub const fn checked_next_power_of_two(self) -> Option<Self>
pub const fn checked_ilog2(self) -> Option<u32>
pub const fn checked_ilog10(self) -> Option<u32>
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) -> Self
pub const fn saturating_pow(self, other: u32) -> Self
Trait Implementations§
Source§impl Binary for PositiveI64
impl Binary for PositiveI64
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<PositiveI64> for i64
impl BitAnd<PositiveI64> for i64
Source§type Output = PositiveI64
type Output = PositiveI64
The resulting type after applying the
& operator.Source§impl BitAnd<i64> for PositiveI64
impl BitAnd<i64> for PositiveI64
Source§impl BitAnd for PositiveI64
impl BitAnd for PositiveI64
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<i64> for PositiveI64
impl BitAndAssign<i64> for PositiveI64
Source§fn bitand_assign(&mut self, rhs: i64)
fn bitand_assign(&mut self, rhs: i64)
Performs the
&= operation. Read moreSource§impl BitAndAssign for PositiveI64
impl BitAndAssign for PositiveI64
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<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 for PositiveI64
impl BitOr for PositiveI64
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 for PositiveI64
impl BitOrAssign for PositiveI64
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 PositiveI64
impl BitXor for PositiveI64
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 BitXorAssign for PositiveI64
impl BitXorAssign for PositiveI64
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for PositiveI64
impl Clone for PositiveI64
Source§fn clone(&self) -> PositiveI64
fn clone(&self) -> PositiveI64
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 PositiveI64
impl Debug for PositiveI64
Source§impl Default for PositiveI64
impl Default for PositiveI64
Source§impl Display for PositiveI64
impl Display for PositiveI64
Source§impl Div<u64> for PositiveI64
impl Div<u64> for PositiveI64
Source§impl Div for PositiveI64
impl Div for PositiveI64
Source§impl DivAssign<u64> for PositiveI64
impl DivAssign<u64> for PositiveI64
Source§fn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
Performs the
/= operation. Read moreSource§impl DivAssign for PositiveI64
impl DivAssign for PositiveI64
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/= operation. Read moreSource§impl From<PositiveI64> for i128
impl From<PositiveI64> for i128
Source§fn from(value: PositiveI64) -> Self
fn from(value: PositiveI64) -> Self
Converts to this type from the input type.
Source§impl From<PositiveI64> for i64
impl From<PositiveI64> for i64
Source§fn from(value: PositiveI64) -> Self
fn from(value: PositiveI64) -> Self
Converts to this type from the input type.
Source§impl From<PositiveI64> for u128
impl From<PositiveI64> for u128
Source§fn from(value: PositiveI64) -> Self
fn from(value: PositiveI64) -> Self
Converts to this type from the input type.
Source§impl From<PositiveI64> for u64
impl From<PositiveI64> for u64
Source§fn from(value: PositiveI64) -> Self
fn from(value: PositiveI64) -> Self
Converts to this type from the input type.
Source§impl From<u16> for PositiveI64
impl From<u16> for PositiveI64
Source§impl From<u32> for PositiveI64
impl From<u32> for PositiveI64
Source§impl From<u8> for PositiveI64
impl From<u8> for PositiveI64
Source§impl FromStr for PositiveI64
impl FromStr for PositiveI64
Source§impl Hash for PositiveI64
impl Hash for PositiveI64
Source§impl LowerHex for PositiveI64
impl LowerHex for PositiveI64
Source§impl Not for PositiveI64
impl Not for PositiveI64
Source§impl Octal for PositiveI64
impl Octal for PositiveI64
Source§impl Ord for PositiveI64
impl Ord for PositiveI64
Source§impl PartialEq for PositiveI64
impl PartialEq for PositiveI64
Source§impl PartialOrd for PositiveI64
impl PartialOrd for PositiveI64
Source§impl Rem<u64> for PositiveI64
impl Rem<u64> for PositiveI64
Source§impl Rem for PositiveI64
impl Rem for PositiveI64
Source§impl RemAssign<u64> for PositiveI64
impl RemAssign<u64> for PositiveI64
Source§fn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
Performs the
%= operation. Read moreSource§impl RemAssign for PositiveI64
impl RemAssign for PositiveI64
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
Performs the
%= operation. Read moreSource§impl TryFrom<PositiveI64> for i16
impl TryFrom<PositiveI64> for i16
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<PositiveI64> for i32
impl TryFrom<PositiveI64> for i32
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<PositiveI64> for i8
impl TryFrom<PositiveI64> for i8
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<PositiveI64> for isize
impl TryFrom<PositiveI64> for isize
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<PositiveI64> for u16
impl TryFrom<PositiveI64> for u16
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<PositiveI64> for u32
impl TryFrom<PositiveI64> for u32
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<PositiveI64> for u8
impl TryFrom<PositiveI64> for u8
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<PositiveI64> for usize
impl TryFrom<PositiveI64> for usize
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§impl TryFrom<i128> for PositiveI64
impl TryFrom<i128> for PositiveI64
Source§impl TryFrom<i16> for PositiveI64
impl TryFrom<i16> for PositiveI64
Source§impl TryFrom<i32> for PositiveI64
impl TryFrom<i32> for PositiveI64
Source§impl TryFrom<i64> for PositiveI64
impl TryFrom<i64> for PositiveI64
Source§impl TryFrom<i8> for PositiveI64
impl TryFrom<i8> for PositiveI64
Source§impl TryFrom<isize> for PositiveI64
impl TryFrom<isize> for PositiveI64
Source§impl TryFrom<u128> for PositiveI64
impl TryFrom<u128> for PositiveI64
Source§impl TryFrom<u64> for PositiveI64
impl TryFrom<u64> for PositiveI64
Source§impl TryFrom<usize> for PositiveI64
impl TryFrom<usize> for PositiveI64
Source§impl UpperHex for PositiveI64
impl UpperHex for PositiveI64
impl Copy for PositiveI64
impl Eq for PositiveI64
Auto Trait Implementations§
impl Freeze for PositiveI64
impl RefUnwindSafe for PositiveI64
impl Send for PositiveI64
impl Sync for PositiveI64
impl Unpin for PositiveI64
impl UnwindSafe for PositiveI64
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