Struct maomi::prop::BindingValue
source · pub struct BindingValue<T> { /* private fields */ }
Expand description
A value that can be associated to a BindingProp
.
Note that the BindingValue
should be exclusively associated to one BindingProp
.
Panics if the value is associated to more than one BindingProp
.
Implementations§
source§impl<T> BindingValue<T>
impl<T> BindingValue<T>
Trait Implementations§
source§impl<T: Debug> Debug for BindingValue<T>
impl<T: Debug> Debug for BindingValue<T>
source§impl<T: Default> Default for BindingValue<T>
impl<T: Default> Default for BindingValue<T>
source§fn default() -> BindingValue<T>
fn default() -> BindingValue<T>
Returns the “default value” for a type. Read more
source§impl<T: Ord> Ord for BindingValue<T>
impl<T: Ord> Ord for BindingValue<T>
source§fn cmp(&self, other: &BindingValue<T>) -> Ordering
fn cmp(&self, other: &BindingValue<T>) -> Ordering
1.21.0 · 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
source§impl<T: PartialEq> PartialEq<BindingValue<T>> for BindingValue<T>
impl<T: PartialEq> PartialEq<BindingValue<T>> for BindingValue<T>
source§fn eq(&self, other: &BindingValue<T>) -> bool
fn eq(&self, other: &BindingValue<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd<BindingValue<T>> for BindingValue<T>
impl<T: PartialOrd> PartialOrd<BindingValue<T>> for BindingValue<T>
source§fn partial_cmp(&self, other: &BindingValue<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &BindingValue<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T> PropertyUpdate<BindingValue<T>> for BindingProp<T>
impl<T> PropertyUpdate<BindingValue<T>> for BindingProp<T>
§type UpdateContext = bool
type UpdateContext = bool
Must be
bool
if used in components and updated through templates.source§fn compare_and_set_ref(
dest: &mut Self,
src: &BindingValue<T>,
ctx: &mut Self::UpdateContext
)
fn compare_and_set_ref( dest: &mut Self, src: &BindingValue<T>, ctx: &mut Self::UpdateContext )
The updater. Read more
impl<T: Eq> Eq for BindingValue<T>
impl<T> StructuralEq for BindingValue<T>
impl<T> StructuralPartialEq for BindingValue<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for BindingValue<T>
impl<T> !Send for BindingValue<T>
impl<T> !Sync for BindingValue<T>
impl<T> Unpin for BindingValue<T>
impl<T> !UnwindSafe for BindingValue<T>
Blanket Implementations§
source§impl<S, T> ListPropertyItem<ListProp<T>, S> for Twhere
S: PartialEq<S> + ?Sized,
T: Default + PropAsRef<S>,
impl<S, T> ListPropertyItem<ListProp<T>, S> for Twhere S: PartialEq<S> + ?Sized, T: Default + PropAsRef<S>,
source§impl<S, T> PropAsRef<S> for Twhere
S: PartialEq<S> + ToOwned<Owned = T> + ?Sized,
T: Borrow<S>,
impl<S, T> PropAsRef<S> for Twhere S: PartialEq<S> + ToOwned<Owned = T> + ?Sized, T: Borrow<S>,
source§fn property_as_ref(&self) -> &S
fn property_as_ref(&self) -> &S
Borrow
&Self
as &S
.source§fn property_to_owned(s: &S) -> T
fn property_to_owned(s: &S) -> T
Clone
&S
as a new Self
.