pub struct MapStateToProps<C: Component, State>(/* private fields */);Available on crate feature
yew only.Implementations§
Source§impl<C, State> MapStateToProps<C, State>where
C: Component,
impl<C, State> MapStateToProps<C, State>where
C: Component,
pub fn new( function: fn(&Rc<State>, &C::Properties) -> Option<C::Properties>, ) -> Self
pub fn perform( &self, state: &Rc<State>, props: &C::Properties, ) -> Option<C::Properties>
Trait Implementations§
Source§impl<C: Clone + Component, State: Clone> Clone for MapStateToProps<C, State>where
C::Properties: Clone,
impl<C: Clone + Component, State: Clone> Clone for MapStateToProps<C, State>where
C::Properties: Clone,
Source§fn clone(&self) -> MapStateToProps<C, State>
fn clone(&self) -> MapStateToProps<C, State>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C: Component, State> Debug for MapStateToProps<C, State>
impl<C: Component, State> Debug for MapStateToProps<C, State>
Source§impl<C, State> PartialEq for MapStateToProps<C, State>where
C: Component,
impl<C, State> PartialEq for MapStateToProps<C, State>where
C: Component,
Auto Trait Implementations§
impl<C, State> Freeze for MapStateToProps<C, State>
impl<C, State> RefUnwindSafe for MapStateToProps<C, State>
impl<C, State> Send for MapStateToProps<C, State>
impl<C, State> Sync for MapStateToProps<C, State>
impl<C, State> Unpin for MapStateToProps<C, State>
impl<C, State> UnwindSafe for MapStateToProps<C, State>
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<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
Source§fn into_opt_prop_value(self) -> Option<V>
fn into_opt_prop_value(self) -> Option<V>
Convert
self to an optional value of a Properties struct.Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.