#[repr(transparent)]pub struct Integer(_);Expand description
Integer number.
Implementations§
source§impl Integer
impl Integer
sourcepub fn from_bigint_ref(n: &BigInt) -> &Self
pub fn from_bigint_ref(n: &BigInt) -> &Self
Converts a BigInt reference into an Integer reference.
pub fn zero() -> Self
pub fn is_zero(&self) -> bool
pub fn is_positive(&self) -> bool
pub fn is_negative(&self) -> bool
pub fn integer_type(&self) -> Option<IntegerDatatype>
sourcepub fn lexical_representation(&self) -> IntegerBuf
pub fn lexical_representation(&self) -> IntegerBuf
Returns a lexical representation of this integer.
Trait Implementations§
source§impl From<IntegerBuf> for Integer
impl From<IntegerBuf> for Integer
source§fn from(value: IntegerBuf) -> Self
fn from(value: IntegerBuf) -> Self
Converts to this type from the input type.
source§impl From<NonNegativeInteger> for Integer
impl From<NonNegativeInteger> for Integer
source§fn from(value: NonNegativeInteger) -> Self
fn from(value: NonNegativeInteger) -> Self
Converts to this type from the input type.
source§impl From<NonPositiveIntegerBuf> for Integer
impl From<NonPositiveIntegerBuf> for Integer
source§fn from(value: NonPositiveIntegerBuf) -> Self
fn from(value: NonPositiveIntegerBuf) -> Self
Converts to this type from the input type.
source§impl Ord for Integer
impl Ord for Integer
source§impl PartialEq<Integer> for Integer
impl PartialEq<Integer> for Integer
source§impl PartialOrd<Integer> for Integer
impl PartialOrd<Integer> for Integer
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 more