Struct oxygengine_user_interface::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
F: FnMut(&T) -> R,
T: 'static + PropsData,
R: Default, pub fn map_or_else<T, R, F, E>(&self, f: F, e: E) -> R where
F: FnMut(&T) -> R,
T: 'static + PropsData,
E: FnMut() -> R, pub fn read_cloned_or_else<T, F>(&self, f: F) -> T where
F: FnMut() -> T,
T: 'static + PropsData + Clone + Default, pub fn write<T>(&self, data: T) -> Result<(), StateError> where
T: 'static + PropsData + Send + Sync, pub fn write_with<T>(&self, data: T) -> Result<(), StateError> where
T: 'static + PropsData + Send + Sync, pub fn write_without<T>(&self) -> Result<(), StateError> where
T: 'static + PropsData + Send + Sync, pub fn mutate<T, F>(&self, f: F) -> Result<(), StateError> where
F: FnMut(&T) -> T,
T: 'static + PropsData + Send + Sync, pub fn mutate_cloned<T, F>(&self, f: F) -> Result<(), StateError> where
F: FnMut(&mut T),
T: 'static + PropsData + Send + Sync + Clone, Auto Trait Implementations
impl<'a> !RefUnwindSafe for State<'a>impl<'a> !UnwindSafe for State<'a>