Struct oxygengine_user_interface::raui::core::prelude::Props [−][src]
pub struct Props(_);
Implementations
impl Props[src]
impl Props[src]pub fn new<T>(data: T) -> Props where
T: 'static + PropsData, [src]
T: 'static + PropsData,
pub fn has<T>(&self) -> bool where
T: 'static + PropsData, [src]
T: 'static + PropsData,
pub fn consume<T>(
&mut self
) -> Result<Box<dyn PropsData + 'static, Global>, PropsError> where
T: 'static + PropsData, [src]
&mut self
) -> Result<Box<dyn PropsData + 'static, Global>, PropsError> where
T: 'static + PropsData,
pub fn read<T>(&self) -> Result<&T, PropsError> where
T: 'static + PropsData, [src]
T: 'static + PropsData,
pub fn map_or_default<T, R, F>(&self, f: F) -> R where
T: 'static + PropsData,
F: FnMut(&T) -> R,
R: Default, [src]
T: 'static + PropsData,
F: FnMut(&T) -> R,
R: Default,
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]
T: 'static + PropsData,
E: FnMut() -> R,
F: FnMut(&T) -> R,
pub fn read_cloned<T>(&self) -> Result<T, PropsError> where
T: 'static + PropsData + Clone, [src]
T: 'static + PropsData + Clone,
pub fn read_cloned_or_default<T>(&self) -> T where
T: 'static + PropsData + Clone + Default, [src]
T: 'static + PropsData + Clone + Default,
pub fn read_cloned_or_else<T, F>(&self, f: F) -> T where
T: 'static + PropsData + Clone + Default,
F: FnMut() -> T, [src]
T: 'static + PropsData + Clone + Default,
F: FnMut() -> T,
pub fn write<T>(&mut self, data: T) where
T: 'static + PropsData, [src]
T: 'static + PropsData,
pub fn mutate<T, F>(&mut self, f: F) where
T: 'static + PropsData,
F: FnMut(&T) -> T, [src]
T: 'static + PropsData,
F: FnMut(&T) -> T,
pub fn mutate_cloned<T, F>(&mut self, f: F) where
T: 'static + PropsData + Clone,
F: FnMut(&mut T), [src]
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, [src]
T: 'static + PropsData,
F: FnMut(&T) -> T,
W: FnMut() -> T,
pub fn with<T>(self, data: T) -> Props where
T: 'static + PropsData, [src]
T: 'static + PropsData,
pub fn without<T>(self) -> Props where
T: 'static + PropsData, [src]
T: 'static + PropsData,
pub fn merge(self, other: Props) -> Props[src]
pub fn merge_from(&mut self, other: Props)[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Props
impl !RefUnwindSafe for Propsimpl !UnwindSafe for Props
impl !UnwindSafe for PropsBlanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any, pub fn get_type_id(&self) -> TypeId
impl<T> TryDefault for T where
T: Default,
impl<T> TryDefault for T where
T: Default,