Struct oxygengine_user_interface::raui::core::props::Props [−][src]
pub struct Props(_);
Implementations
pub fn consume<T>(
&mut self
) -> Result<Box<dyn PropsData + 'static, Global>, PropsError> where
T: 'static + PropsData,
pub fn consume_unwrap_cloned<T>(&mut self) -> Result<T, PropsError> where
T: 'static + PropsData + Clone,
pub fn map_or_default<T, R, F>(&self, f: F) -> R where
T: 'static + PropsData,
R: Default,
F: FnMut(&T) -> R,
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,
pub fn read_cloned_or_else<T, F>(&self, f: F) -> T where
T: 'static + PropsData + Clone + Default,
F: FnMut() -> T,
pub fn mutate_cloned<T, F>(&mut self, f: F) where
T: 'static + PropsData + Clone,
F: FnMut(&mut T),
pub fn mutate_or_write<T, F, W>(&mut self, f: F, w: W) where
T: 'static + PropsData,
F: FnMut(&T) -> T,
W: FnMut() -> T,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Props
impl !UnwindSafe for Props
Blanket Implementations
Mutably borrows from an owned value. Read more