Struct preserves::value::signed_integer::SignedInteger
source · pub struct SignedInteger(/* private fields */);
Expand description
Main representation of Preserves SignedInteger
s.
Implementations§
source§impl SignedInteger
impl SignedInteger
sourcepub fn repr(&self) -> &SignedIntegerRepr
pub fn repr(&self) -> &SignedIntegerRepr
Extract the internal representation.
sourcepub fn is_i(&self) -> bool
pub fn is_i(&self) -> bool
Does this SignedInteger
fit in an i128? (See also the TryFrom instance for
i128.)
Trait Implementations§
source§impl Clone for SignedInteger
impl Clone for SignedInteger
source§fn clone(&self) -> SignedInteger
fn clone(&self) -> SignedInteger
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 SignedInteger
impl Debug for SignedInteger
source§impl Display for SignedInteger
impl Display for SignedInteger
source§impl<'a> From<&'a SignedInteger> for BigInt
impl<'a> From<&'a SignedInteger> for BigInt
source§fn from(v: &'a SignedInteger) -> Self
fn from(v: &'a SignedInteger) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a SignedInteger> for Cow<'a, BigInt>
impl<'a> From<&'a SignedInteger> for Cow<'a, BigInt>
source§fn from(v: &'a SignedInteger) -> Self
fn from(v: &'a SignedInteger) -> Self
Converts to this type from the input type.
source§impl<N: NestedValue> From<&SignedInteger> for Value<N>
impl<N: NestedValue> From<&SignedInteger> for Value<N>
source§fn from(v: &SignedInteger) -> Self
fn from(v: &SignedInteger) -> Self
Converts to this type from the input type.
source§impl From<BigInt> for SignedInteger
impl From<BigInt> for SignedInteger
source§impl From<i128> for SignedInteger
impl From<i128> for SignedInteger
source§impl From<i16> for SignedInteger
impl From<i16> for SignedInteger
source§impl From<i32> for SignedInteger
impl From<i32> for SignedInteger
source§impl From<i64> for SignedInteger
impl From<i64> for SignedInteger
source§impl From<i8> for SignedInteger
impl From<i8> for SignedInteger
source§impl From<isize> for SignedInteger
impl From<isize> for SignedInteger
source§impl From<u128> for SignedInteger
impl From<u128> for SignedInteger
source§impl From<u16> for SignedInteger
impl From<u16> for SignedInteger
source§impl From<u32> for SignedInteger
impl From<u32> for SignedInteger
source§impl From<u64> for SignedInteger
impl From<u64> for SignedInteger
source§impl From<u8> for SignedInteger
impl From<u8> for SignedInteger
source§impl From<usize> for SignedInteger
impl From<usize> for SignedInteger
source§impl Hash for SignedInteger
impl Hash for SignedInteger
source§impl Ord for SignedInteger
impl Ord for SignedInteger
source§impl PartialEq for SignedInteger
impl PartialEq for SignedInteger
source§fn eq(&self, other: &SignedInteger) -> bool
fn eq(&self, other: &SignedInteger) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SignedInteger
impl PartialOrd for SignedInteger
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<&SignedInteger> for i128
impl TryFrom<&SignedInteger> for i128
source§impl TryFrom<&SignedInteger> for i16
impl TryFrom<&SignedInteger> for i16
source§impl TryFrom<&SignedInteger> for i32
impl TryFrom<&SignedInteger> for i32
source§impl TryFrom<&SignedInteger> for i64
impl TryFrom<&SignedInteger> for i64
source§impl TryFrom<&SignedInteger> for i8
impl TryFrom<&SignedInteger> for i8
source§impl TryFrom<&SignedInteger> for isize
impl TryFrom<&SignedInteger> for isize
source§impl TryFrom<&SignedInteger> for u128
impl TryFrom<&SignedInteger> for u128
source§impl TryFrom<&SignedInteger> for u16
impl TryFrom<&SignedInteger> for u16
source§impl TryFrom<&SignedInteger> for u32
impl TryFrom<&SignedInteger> for u32
source§impl TryFrom<&SignedInteger> for u64
impl TryFrom<&SignedInteger> for u64
source§impl TryFrom<&SignedInteger> for u8
impl TryFrom<&SignedInteger> for u8
source§impl TryFrom<&SignedInteger> for usize
impl TryFrom<&SignedInteger> for usize
impl Eq for SignedInteger
impl StructuralPartialEq for SignedInteger
Auto Trait Implementations§
impl Freeze for SignedInteger
impl RefUnwindSafe for SignedInteger
impl Send for SignedInteger
impl Sync for SignedInteger
impl Unpin for SignedInteger
impl UnwindSafe for SignedInteger
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