[−][src]Struct raui::core::props::Props
Implementations
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
E: FnMut() -> R,
T: 'static + PropsData,
F: FnMut(&T) -> R,
[src]
E: FnMut() -> R,
T: 'static + PropsData,
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 write<T>(&mut self, data: T) where
T: 'static + PropsData,
[src]
T: 'static + PropsData,
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]
Trait Implementations
impl Clone for Props
[src]
impl Debug for Props
[src]
impl Default for Props
[src]
impl<'_> From<&'_ Props> for Props
[src]
impl<T> From<T> for Props where
T: 'static + PropsData,
[src]
T: 'static + PropsData,
Auto Trait Implementations
impl !RefUnwindSafe for Props
[src]
impl !Send for Props
[src]
impl !Sync for Props
[src]
impl Unpin for Props
[src]
impl !UnwindSafe for Props
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,