pub struct Int(/* private fields */);Expand description
A Lean Int: an integer of arbitrary precision.
Implementations§
Trait Implementations§
impl Eq for Int
Source§impl Ord for Int
impl Ord for Int
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Int
impl PartialOrd for Int
impl StructuralPartialEq for Int
Source§impl TryFrom<&Int> for i8
impl TryFrom<&Int> for i8
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<&Int> for i16
impl TryFrom<&Int> for i16
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<&Int> for i32
impl TryFrom<&Int> for i32
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<&Int> for i64
impl TryFrom<&Int> for i64
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<&Int> for i128
impl TryFrom<&Int> for i128
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<&Int> for isize
impl TryFrom<&Int> for isize
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<&Int> for u8
impl TryFrom<&Int> for u8
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<&Int> for u16
impl TryFrom<&Int> for u16
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<&Int> for u32
impl TryFrom<&Int> for u32
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<&Int> for u64
impl TryFrom<&Int> for u64
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<&Int> for u128
impl TryFrom<&Int> for u128
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<&Int> for usize
impl TryFrom<&Int> for usize
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<Int> for i8
impl TryFrom<Int> for i8
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<Int> for i16
impl TryFrom<Int> for i16
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<Int> for i32
impl TryFrom<Int> for i32
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<Int> for i64
impl TryFrom<Int> for i64
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<Int> for i128
impl TryFrom<Int> for i128
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<Int> for isize
impl TryFrom<Int> for isize
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<Int> for u8
impl TryFrom<Int> for u8
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<Int> for u16
impl TryFrom<Int> for u16
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<Int> for u32
impl TryFrom<Int> for u32
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<Int> for u64
impl TryFrom<Int> for u64
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Source§impl TryFrom<Int> for u128
impl TryFrom<Int> for u128
Source§type Error = OutOfRange
type Error = OutOfRange
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for Int
impl Freeze for Int
impl Move for Int
impl RefUnwindSafe for Int
impl Send for Int
impl Sync for Int
impl Unpin for Int
impl UnsafeUnpin for Int
impl UnwindSafe for Int
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