Struct raui_core::state::State [−][src]
pub struct State<'a> { /* fields omitted */ }Implementations
pub fn map_or_default<T, R, F>(&self, f: F) -> R where
T: 'static + PropsData,
R: Default,
F: FnMut(&T) -> R, [src]pub fn map_or_else<T, R, F, E>(&self, f: F, e: E) -> R where
T: 'static + PropsData,
F: FnMut(&T) -> R,
E: FnMut() -> R, [src]pub fn read_cloned_or_else<T, F>(&self, f: F) -> T where
T: 'static + PropsData + Clone + Default,
F: FnMut() -> T, [src]pub fn write<T>(&self, data: T) -> Result<(), StateError> where
T: 'static + PropsData + Send + Sync, [src]pub fn write_with<T>(&self, data: T) -> Result<(), StateError> where
T: 'static + PropsData + Send + Sync, [src]pub fn write_without<T>(&self) -> Result<(), StateError> where
T: 'static + PropsData + Send + Sync, [src]pub fn mutate<T, F>(&self, f: F) -> Result<(), StateError> where
T: 'static + PropsData + Send + Sync,
F: FnMut(&T) -> T, [src]Auto Trait Implementations
impl<'a> !RefUnwindSafe for State<'a>impl<'a> !UnwindSafe for State<'a>