Struct xsd_types::value::NonNegativeInteger
source · pub struct NonNegativeInteger(_);Implementations§
source§impl NonNegativeInteger
impl NonNegativeInteger
sourcepub unsafe fn new_unchecked(n: BigInt) -> Self
pub unsafe fn new_unchecked(n: BigInt) -> Self
pub fn zero() -> Self
pub fn is_zero(&self) -> bool
pub fn non_negative_integer_type(&self) -> Option<NonNegativeIntegerDatatype>
sourcepub fn lexical_representation(&self) -> NonNegativeIntegerBuf
pub fn lexical_representation(&self) -> NonNegativeIntegerBuf
Returns a lexical representation of this non negative integer.
Trait Implementations§
source§impl AsRef<BigInt> for NonNegativeInteger
impl AsRef<BigInt> for NonNegativeInteger
source§impl Borrow<BigInt> for NonNegativeInteger
impl Borrow<BigInt> for NonNegativeInteger
source§impl Clone for NonNegativeInteger
impl Clone for NonNegativeInteger
source§fn clone(&self) -> NonNegativeInteger
fn clone(&self) -> NonNegativeInteger
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 NonNegativeInteger
impl Debug for NonNegativeInteger
source§impl Display for NonNegativeInteger
impl Display for NonNegativeInteger
source§impl<'a> From<&'a NonNegativeInteger> for NonNegativeInteger
impl<'a> From<&'a NonNegativeInteger> for NonNegativeInteger
source§fn from(value: &'a NonNegativeInteger) -> Self
fn from(value: &'a NonNegativeInteger) -> Self
Converts to this type from the input type.
source§impl From<NonNegativeInteger> for BigInt
impl From<NonNegativeInteger> for BigInt
source§fn from(value: NonNegativeInteger) -> Self
fn from(value: NonNegativeInteger) -> 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<NonNegativeIntegerBuf> for NonNegativeInteger
impl From<NonNegativeIntegerBuf> for NonNegativeInteger
source§fn from(value: NonNegativeIntegerBuf) -> Self
fn from(value: NonNegativeIntegerBuf) -> Self
Converts to this type from the input type.
source§impl FromStr for NonNegativeInteger
impl FromStr for NonNegativeInteger
source§impl Hash for NonNegativeInteger
impl Hash for NonNegativeInteger
source§impl Ord for NonNegativeInteger
impl Ord for NonNegativeInteger
source§fn cmp(&self, other: &NonNegativeInteger) -> Ordering
fn cmp(&self, other: &NonNegativeInteger) -> Ordering
1.21.0 · 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
source§impl PartialEq<NonNegativeInteger> for NonNegativeInteger
impl PartialEq<NonNegativeInteger> for NonNegativeInteger
source§fn eq(&self, other: &NonNegativeInteger) -> bool
fn eq(&self, other: &NonNegativeInteger) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<NonNegativeInteger> for NonNegativeInteger
impl PartialOrd<NonNegativeInteger> for NonNegativeInteger
source§fn partial_cmp(&self, other: &NonNegativeInteger) -> Option<Ordering>
fn partial_cmp(&self, other: &NonNegativeInteger) -> Option<Ordering>
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