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 consume_unwrap_cloned<T>(&mut self) -> Result<T, PropsError> where
T: 'static + PropsData + Clone, [src]
T: 'static + PropsData + Clone,
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 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) -> 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 Send for Props
impl Sync for Props
impl Unpin for Props
impl !UnwindSafe for Props
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more