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