Skip to main content

CloneState

Trait CloneState 

Source
pub trait CloneState<T>
where T: Clone + 'static,
{ // Required methods fn get(&self) -> T; fn soft_get(&self) -> Option<T>; }

Required Methods§

Source

fn get(&self) -> T

Source

fn soft_get(&self) -> Option<T>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> CloneState<T> for StateAccess<T>
where T: Clone + 'static,