Struct raui_core::props::Props [−][src]
pub struct Props(_);
Implementations
impl Props[src]
impl Props[src]pub fn new<T>(data: T) -> Self 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>, PropsError> where
T: 'static + PropsData, [src]
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,
R: Default,
F: FnMut(&T) -> R, [src]
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, [src]
T: 'static + PropsData,
F: FnMut(&T) -> R,
E: FnMut() -> 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 with<T>(self, data: T) -> Self where
T: 'static + PropsData, [src]
T: 'static + PropsData,
pub fn without<T>(self) -> Self where
T: 'static + PropsData, [src]
T: 'static + PropsData,
pub fn merge(self, other: Self) -> Self[src]
pub fn merge_from(&mut self, other: Self)[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Props
impl !RefUnwindSafe for Propsimpl !UnwindSafe for Props
impl !UnwindSafe for Props