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
T: 'static + PropsData,
F: FnMut(&T) -> R,
R: Default,
[src]pub fn map_or_else<T, R, F, E>(&self, f: F, e: E) -> R where
T: 'static + PropsData,
E: FnMut() -> R,
F: FnMut(&T) -> 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>
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
Mutably borrows from an owned value. Read more