[][src]Enum anat::NatNum

pub enum NatNum {
    Zero,
    Mult(Vec<NatNum>),
}

Variants

Zero
Mult(Vec<NatNum>)

Implementations

impl NatNum[src]

pub fn to_number(&self) -> u32[src]

pub fn add_rec(&self, other: &NatNum) -> NatNum[src]

a recursive adder for two NatNumbers / Nat Trees

pub fn to_number_checked(&self) -> u32[src]

pub fn to_string(&self) -> String[src]

Trait Implementations

impl Clone for NatNum[src]

impl Debug for NatNum[src]

impl From<u32> for NatNum[src]

impl PartialEq<NatNum> for NatNum[src]

impl StructuralPartialEq for NatNum[src]

Auto Trait Implementations

impl RefUnwindSafe for NatNum

impl Send for NatNum

impl Sync for NatNum

impl Unpin for NatNum

impl UnwindSafe for NatNum

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.