Base

Trait Base 

Source
pub trait Base {
    // Required methods
    spec fn base() -> nat;
    proof fn base_min();
}
Expand description

Represents a base with value Self::base().

Required Methods§

Source

spec fn base() -> nat

Source

proof fn base_min()

ensures
Self::base() > 1,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Base for u8

Source§

open spec fn base() -> nat

{ u8::MAX as nat + 1 }
Source§

proof fn base_min()

Source§

impl Base for u64

Source§

open spec fn base() -> nat

{ u64::MAX as nat + 1 }
Source§

proof fn base_min()

Source§

impl Base for usize

Source§

open spec fn base() -> nat

{ usize::MAX as nat + 1 }
Source§

proof fn base_min()

Implementors§