Skip to main content

AsState

Trait AsState 

Source
pub trait AsState:
    Clone
    + Debug
    + Default
    + Display
    + PartialEq { }
Expand description

State type needs to implement these traits: Clone, Debug, Default, PartialEq.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> AsState for T
where T: Clone + Debug + Default + Display + PartialEq,