Expand description
Variants
I64(i64)
BigInt(BigInt)
Trait Implementations
sourceimpl From<DecodedUInt> for Integer
impl From<DecodedUInt> for Integer
sourcefn from(uint: DecodedUInt) -> Self
fn from(uint: DecodedUInt) -> Self
Converts to this type from the input type.
sourceimpl IntAccess for Integer
impl IntAccess for Integer
sourcefn as_i64(&self) -> Option<i64>
fn as_i64(&self) -> Option<i64>
Returns the value as an i64
if it can be represented as such. Read more
sourcefn as_big_int(&self) -> Option<&BigInt>
fn as_big_int(&self) -> Option<&BigInt>
Returns a reference as a BigInt
if it is represented as such. Note that this
method may return None
if the underlying representation is not stored in a BigInt
such as if it is represented as an i64
so it is somewhat asymmetric with respect
to IntAccess::as_i64
. Read more
impl Eq for Integer
Auto Trait Implementations
impl RefUnwindSafe for Integer
impl Send for Integer
impl Sync for Integer
impl Unpin for Integer
impl UnwindSafe for Integer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more