pub struct Prop<T> { /* private fields */ }Expand description
A property of components that can be set through templates.
Implementations§
Trait Implementations§
impl<T: Copy> Copy for Prop<T>
impl<T: Eq> Eq for Prop<T>
Source§impl<T: Ord> Ord for Prop<T>
impl<T: Ord> Ord for Prop<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<T: PartialOrd> PartialOrd for Prop<T>
impl<T: PartialOrd> PartialOrd for Prop<T>
Source§impl<S: ?Sized + PartialEq, T: PropAsRef<S>> PropertyUpdate<S> for Prop<T>
impl<S: ?Sized + PartialEq, T: PropAsRef<S>> PropertyUpdate<S> for Prop<T>
Source§type UpdateContext = bool
type UpdateContext = bool
Must be
bool if used in components and updated through templates.impl<T: PartialEq> StructuralPartialEq for Prop<T>
Auto Trait Implementations§
impl<T> Freeze for Prop<T>where
T: Freeze,
impl<T> RefUnwindSafe for Prop<T>where
T: RefUnwindSafe,
impl<T> Send for Prop<T>where
T: Send,
impl<T> Sync for Prop<T>where
T: Sync,
impl<T> Unpin for Prop<T>where
T: Unpin,
impl<T> UnsafeUnpin for Prop<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Prop<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S, T> ListPropertyItem<ListProp<T>, S> for T
impl<S, T> ListPropertyItem<ListProp<T>, S> for T
Source§impl<S, T> PropAsRef<S> for T
impl<S, T> PropAsRef<S> for T
Source§fn property_as_ref(&self) -> &S
fn property_as_ref(&self) -> &S
Borrow
&Self as &S .Source§fn property_to_owned(s: &S) -> Twhere
T: Sized,
fn property_to_owned(s: &S) -> Twhere
T: Sized,
Clone
&S as a new Self .