Trait StateTrait

Source
pub trait StateTrait: Display {
    // Required methods
    fn failure() -> Self;
    fn is_failure(&self) -> bool;
}
Expand description

Trait for states. Used for internal enum generation.

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

Required Methods§

Source

fn failure() -> Self

Source

fn is_failure(&self) -> bool

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§