pub struct NonNegativeInteger(_);

Implementations§

source§

impl NonNegativeInteger

source

pub unsafe fn new_unchecked(n: BigInt) -> Self

Create a new non negative integer from a BigInt.

Safety

The input number must be non negative.

source

pub fn from_bytes_be(bytes: &[u8]) -> Self

Creates a non negative integer from its unsigned big endian bytes representation.

source

pub fn from_bytes_le(bytes: &[u8]) -> Self

Creates a non negative integer from its unsigned little endian bytes representation.

source

pub unsafe fn from_signed_bytes_be_unchecked(bytes: &[u8]) -> Self

Creates a non negative integer from its signed big endian bytes representation.

Safety

The represented number must be non negative.

source

pub unsafe fn from_signed_bytes_le_unchecked(bytes: &[u8]) -> Self

Creates a non negative integer from its signed little endian bytes representation.

Safety

The represented number must be non negative.

source

pub fn from_signed_bytes_be(bytes: &[u8]) -> Result<Self, IntegerIsNegative>

source

pub fn from_signed_bytes_le(bytes: &[u8]) -> Result<Self, IntegerIsNegative>

source

pub fn into_big_int(self) -> BigInt

source

pub fn zero() -> Self

source

pub fn is_zero(&self) -> bool

source

pub fn non_negative_integer_type(&self) -> Option<NonNegativeIntegerDatatype>

source

pub fn lexical_representation(&self) -> NonNegativeIntegerBuf

Returns a lexical representation of this non negative integer.

source

pub fn to_bytes_be(&self) -> (Sign, Vec<u8>)

source

pub fn to_bytes_le(&self) -> (Sign, Vec<u8>)

source

pub fn to_signed_bytes_be(&self) -> Vec<u8>

source

pub fn to_signed_bytes_le(&self) -> Vec<u8>

Trait Implementations§

source§

impl Add<Integer> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: Integer) -> Self::Output

Performs the + operation. Read more
source§

impl Add<NegativeInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: NegativeInteger) -> Self::Output

Performs the + operation. Read more
source§

impl Add<NonNegativeInteger> for NegativeInteger

§

type Output = NegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: NonNegativeInteger) -> Self::Output

Performs the + operation. Read more
source§

impl Add<NonNegativeInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: NonNegativeInteger) -> Self::Output

Performs the + operation. Read more
source§

impl Add<NonNegativeInteger> for NonPositiveInteger

§

type Output = NonPositiveInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: NonNegativeInteger) -> Self::Output

Performs the + operation. Read more
source§

impl Add<NonNegativeInteger> for PositiveInteger

§

type Output = PositiveInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: NonNegativeInteger) -> Self::Output

Performs the + operation. Read more
source§

impl Add<NonPositiveInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: NonPositiveInteger) -> Self::Output

Performs the + operation. Read more
source§

impl Add<PositiveInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: PositiveInteger) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i16> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: i16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i32> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: i32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i64> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: i64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<i8> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: i8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<isize> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: isize) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u16> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: u16) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u32> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: u32) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u64> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: u64) -> Self::Output

Performs the + operation. Read more
source§

impl Add<u8> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: u8) -> Self::Output

Performs the + operation. Read more
source§

impl Add<usize> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: usize) -> Self::Output

Performs the + operation. Read more
source§

impl AsRef<BigInt> for NonNegativeInteger

source§

fn as_ref(&self) -> &BigInt

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<BigInt> for NonNegativeInteger

source§

fn borrow(&self) -> &BigInt

Immutably borrows from an owned value. Read more
source§

impl Clone for NonNegativeInteger

source§

fn clone(&self) -> NonNegativeInteger

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NonNegativeInteger

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for NonNegativeInteger

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Div<Integer> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: Integer) -> Self::Output

Performs the / operation. Read more
source§

impl Div<NegativeInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: NegativeInteger) -> Self::Output

Performs the / operation. Read more
source§

impl Div<NonNegativeInteger> for NegativeInteger

§

type Output = NegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: NonNegativeInteger) -> Self::Output

Performs the / operation. Read more
source§

impl Div<NonNegativeInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: NonNegativeInteger) -> Self::Output

Performs the / operation. Read more
source§

impl Div<NonNegativeInteger> for NonPositiveInteger

§

type Output = NonPositiveInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: NonNegativeInteger) -> Self::Output

Performs the / operation. Read more
source§

impl Div<NonNegativeInteger> for PositiveInteger

§

type Output = PositiveInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: NonNegativeInteger) -> Self::Output

Performs the / operation. Read more
source§

impl Div<NonPositiveInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: NonPositiveInteger) -> Self::Output

Performs the / operation. Read more
source§

impl Div<PositiveInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: PositiveInteger) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i16> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: i16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i32> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: i32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i64> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: i64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<i8> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: i8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<isize> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: isize) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u16> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: u16) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u32> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: u32) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u64> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: u64) -> Self::Output

Performs the / operation. Read more
source§

impl Div<u8> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: u8) -> Self::Output

Performs the / operation. Read more
source§

impl Div<usize> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: usize) -> Self::Output

Performs the / operation. Read more
source§

impl<'a> From<&'a NonNegativeInteger> for NonNegativeInteger

source§

fn from(value: &'a NonNegativeInteger) -> Self

Converts to this type from the input type.
source§

impl From<NonNegativeInteger> for BigInt

source§

fn from(value: NonNegativeInteger) -> Self

Converts to this type from the input type.
source§

impl From<NonNegativeInteger> for Integer

source§

fn from(value: NonNegativeInteger) -> Self

Converts to this type from the input type.
source§

impl From<NonNegativeIntegerBuf> for NonNegativeInteger

source§

fn from(value: NonNegativeIntegerBuf) -> Self

Converts to this type from the input type.
source§

impl From<u16> for NonNegativeInteger

source§

fn from(value: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for NonNegativeInteger

source§

fn from(value: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for NonNegativeInteger

source§

fn from(value: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for NonNegativeInteger

source§

fn from(value: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for NonNegativeInteger

source§

fn from(value: usize) -> Self

Converts to this type from the input type.
source§

impl FromStr for NonNegativeInteger

§

type Err = InvalidNonNegativeInteger

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for NonNegativeInteger

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl LexicalFormOf<NonNegativeInteger> for NonNegativeInteger

source§

impl Mul<Integer> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Integer) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<NegativeInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: NegativeInteger) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<NonNegativeInteger> for NegativeInteger

§

type Output = NegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: NonNegativeInteger) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<NonNegativeInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: NonNegativeInteger) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<NonNegativeInteger> for NonPositiveInteger

§

type Output = NonPositiveInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: NonNegativeInteger) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<NonNegativeInteger> for PositiveInteger

§

type Output = PositiveInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: NonNegativeInteger) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<NonPositiveInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: NonPositiveInteger) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<PositiveInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: PositiveInteger) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i16> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i32> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i64> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<i8> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<isize> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: isize) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u16> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u16) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u32> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u32) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u64> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u64) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<u8> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u8) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<usize> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: usize) -> Self::Output

Performs the * operation. Read more
source§

impl Ord for NonNegativeInteger

source§

fn cmp(&self, other: &NonNegativeInteger) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl ParseRdf for NonNegativeInteger

source§

impl PartialEq<NonNegativeInteger> for NonNegativeInteger

source§

fn eq(&self, other: &NonNegativeInteger) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<NonNegativeInteger> for NonNegativeInteger

source§

fn partial_cmp(&self, other: &NonNegativeInteger) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Sub<Integer> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Integer) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<NegativeInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: NegativeInteger) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<NonNegativeInteger> for NegativeInteger

§

type Output = NegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: NonNegativeInteger) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<NonNegativeInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: NonNegativeInteger) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<NonNegativeInteger> for NonPositiveInteger

§

type Output = NonPositiveInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: NonNegativeInteger) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<NonNegativeInteger> for PositiveInteger

§

type Output = PositiveInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: NonNegativeInteger) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<NonPositiveInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: NonPositiveInteger) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<PositiveInteger> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: PositiveInteger) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i16> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i32> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i64> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<i8> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<isize> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: isize) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u16> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u16) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u32> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u32) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u64> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u64) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<u8> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u8) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<usize> for NonNegativeInteger

§

type Output = NonNegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: usize) -> Self::Output

Performs the - operation. Read more
source§

impl TryFrom<Integer> for NonNegativeInteger

§

type Error = IntegerIsNegative

The type returned in the event of a conversion error.
source§

fn try_from(value: Integer) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<NonNegativeInteger> for i16

§

type Error = NonNegativeIntegerOutOfTargetBounds

The type returned in the event of a conversion error.
source§

fn try_from(value: NonNegativeInteger) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<NonNegativeInteger> for i32

§

type Error = NonNegativeIntegerOutOfTargetBounds

The type returned in the event of a conversion error.
source§

fn try_from(value: NonNegativeInteger) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<NonNegativeInteger> for i64

§

type Error = NonNegativeIntegerOutOfTargetBounds

The type returned in the event of a conversion error.
source§

fn try_from(value: NonNegativeInteger) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<NonNegativeInteger> for i8

§

type Error = NonNegativeIntegerOutOfTargetBounds

The type returned in the event of a conversion error.
source§

fn try_from(value: NonNegativeInteger) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<NonNegativeInteger> for isize

§

type Error = NonNegativeIntegerOutOfTargetBounds

The type returned in the event of a conversion error.
source§

fn try_from(value: NonNegativeInteger) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<NonNegativeInteger> for u16

§

type Error = NonNegativeIntegerOutOfTargetBounds

The type returned in the event of a conversion error.
source§

fn try_from(value: NonNegativeInteger) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<NonNegativeInteger> for u32

§

type Error = NonNegativeIntegerOutOfTargetBounds

The type returned in the event of a conversion error.
source§

fn try_from(value: NonNegativeInteger) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<NonNegativeInteger> for u64

§

type Error = NonNegativeIntegerOutOfTargetBounds

The type returned in the event of a conversion error.
source§

fn try_from(value: NonNegativeInteger) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<NonNegativeInteger> for u8

§

type Error = NonNegativeIntegerOutOfTargetBounds

The type returned in the event of a conversion error.
source§

fn try_from(value: NonNegativeInteger) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<NonNegativeInteger> for usize

§

type Error = NonNegativeIntegerOutOfTargetBounds

The type returned in the event of a conversion error.
source§

fn try_from(value: NonNegativeInteger) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl XsdDatatype for NonNegativeInteger

source§

fn type_(&self) -> Datatype

Returns the XSD datatype that best describes the value.
source§

impl Eq for NonNegativeInteger

source§

impl StructuralEq for NonNegativeInteger

source§

impl StructuralPartialEq for NonNegativeInteger

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.