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,
[src]pub fn consume_unwrap_cloned<T>(&mut self) -> Result<T, PropsError> where
T: 'static + PropsData + Clone,
[src]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 mutate_cloned<T, F>(&mut self, f: F) where
T: 'static + PropsData + Clone,
F: FnMut(&mut T),
[src]Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Props
impl !UnwindSafe for Props
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
impl<T> TryDefault for T where
T: Default,
impl<T> TryDefault for T where
T: Default,
pub fn try_default() -> Result<T, String>
pub fn try_default() -> Result<T, String>
Tries to create the default.
fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls try_default
and panics on an error case.