Enum preserves::value::signed_integer::SignedIntegerRepr
source · pub enum SignedIntegerRepr {
I128(i128),
U128(u128),
Big(Box<BigInt>),
}
Expand description
Internal representation of Preserves SignedInteger
s.
Invariant: if I128 can be used, it will be; otherwise, if U128 can be used, it will be; otherwise, Big will be used.
Variants§
Trait Implementations§
source§impl Clone for SignedIntegerRepr
impl Clone for SignedIntegerRepr
source§fn clone(&self) -> SignedIntegerRepr
fn clone(&self) -> SignedIntegerRepr
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 SignedIntegerRepr
impl Debug for SignedIntegerRepr
source§impl Hash for SignedIntegerRepr
impl Hash for SignedIntegerRepr
source§impl PartialEq for SignedIntegerRepr
impl PartialEq for SignedIntegerRepr
source§fn eq(&self, other: &SignedIntegerRepr) -> bool
fn eq(&self, other: &SignedIntegerRepr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SignedIntegerRepr
impl StructuralPartialEq for SignedIntegerRepr
Auto Trait Implementations§
impl Freeze for SignedIntegerRepr
impl RefUnwindSafe for SignedIntegerRepr
impl Send for SignedIntegerRepr
impl Sync for SignedIntegerRepr
impl Unpin for SignedIntegerRepr
impl UnwindSafe for SignedIntegerRepr
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