pub struct PositiveInteger(_);

Implementations§

source§

impl PositiveInteger

source

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

Creates a new positive integer from the given BigInt.

Safety

The input value must but a positive integer.

source

pub fn into_big_int(self) -> BigInt

source

pub fn is_one(&self) -> bool

Trait Implementations§

source§

impl Add<Integer> for PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 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 PositiveInteger

§

type Output = PositiveInteger

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 NegativeInteger

§

type Output = NegativeInteger

The resulting type after applying the + operator.
source§

fn add(self, rhs: PositiveInteger) -> 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<PositiveInteger> for NonPositiveInteger

§

type Output = NonPositiveInteger

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<PositiveInteger> for PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Clone for PositiveInteger

source§

fn clone(&self) -> PositiveInteger

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 PositiveInteger

source§

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

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

impl Display for PositiveInteger

source§

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

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

impl Div<Integer> for PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 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 PositiveInteger

§

type Output = PositiveInteger

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 NegativeInteger

§

type Output = NegativeInteger

The resulting type after applying the / operator.
source§

fn div(self, rhs: PositiveInteger) -> 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<PositiveInteger> for NonPositiveInteger

§

type Output = NonPositiveInteger

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<PositiveInteger> for PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl From<PositiveInteger> for BigInt

source§

fn from(value: PositiveInteger) -> Self

Converts to this type from the input type.
source§

impl Hash for PositiveInteger

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<PositiveInteger> for PositiveInteger

source§

impl Mul<Integer> for PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 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 PositiveInteger

§

type Output = PositiveInteger

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 NegativeInteger

§

type Output = NegativeInteger

The resulting type after applying the * operator.
source§

fn mul(self, rhs: PositiveInteger) -> 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<PositiveInteger> for NonPositiveInteger

§

type Output = NonPositiveInteger

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<PositiveInteger> for PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Ord for PositiveInteger

source§

fn cmp(&self, other: &PositiveInteger) -> 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 PositiveInteger

source§

impl PartialEq<PositiveInteger> for PositiveInteger

source§

fn eq(&self, other: &PositiveInteger) -> 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<PositiveInteger> for PositiveInteger

source§

fn partial_cmp(&self, other: &PositiveInteger) -> 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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 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 PositiveInteger

§

type Output = PositiveInteger

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 NegativeInteger

§

type Output = NegativeInteger

The resulting type after applying the - operator.
source§

fn sub(self, rhs: PositiveInteger) -> 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<PositiveInteger> for NonPositiveInteger

§

type Output = NonPositiveInteger

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<PositiveInteger> for PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

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 PositiveInteger

§

type Output = PositiveInteger

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl XsdDatatype for PositiveInteger

source§

fn type_(&self) -> Datatype

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

impl Eq for PositiveInteger

source§

impl StructuralEq for PositiveInteger

source§

impl StructuralPartialEq for PositiveInteger

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.