SmallAlphabet

Trait SmallAlphabet 

Source
pub trait SmallAlphabet:
    Copy
    + Ord
    + Into<usize> {
    const SIZE_LOG_2: usize;
    const SIZE: usize = _;

    // Required method
    fn from_usize(val: usize) -> Self;
}

Required Associated Constants§

Provided Associated Constants§

Source

const SIZE: usize = _

Required Methods§

Source

fn from_usize(val: usize) -> Self

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 SmallAlphabet for bool

Source§

const SIZE_LOG_2: usize = 1usize

Source§

fn from_usize(val: usize) -> Self

Source§

impl SmallAlphabet for u8

Source§

const SIZE_LOG_2: usize = 8usize

Source§

fn from_usize(val: usize) -> Self

Implementors§