Skip to main content

Nat

Trait Nat 

Source
pub trait Nat:
    SealedNat
    + Send
    + Copy
    + 'static {
    const Value: Self;

    // Required method
    fn nat() -> Self;
}

Required Associated Constants§

Source

const Value: Self

Required Methods§

Source

fn nat() -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Nat for Z

Source§

const Value: Z = Z

Source§

impl<N> Nat for S<N>
where N: Nat,

Source§

const Value: S<N>