Trait Alphabet

Source
pub trait Alphabet: Display {
    // Required methods
    fn nothing() -> Self;
    fn any(&self) -> bool;
}
Expand description

Trait for input/output alphabet. Used for internal enum generation.

All the input structs are enumerated in an internal enum that implements this trait.

Required Methods§

Source

fn nothing() -> Self

Return a value that represents no input/output.

Source

fn any(&self) -> bool

Check if the alphabet is anything other than nothing.

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.

Implementors§