Skip to main content

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".

Implementations on Foreign Types§

Source§

impl SmallAlphabet for bool

Source§

impl SmallAlphabet for u8

Implementors§