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