Struct react::StateSetter
source · [−]pub struct StateSetter<T: ?Sized> { /* private fields */ }
Implementations
sourceimpl<T: 'static + ?Sized> StateSetter<T>
impl<T: 'static + ?Sized> StateSetter<T>
pub fn set<V: IntoRc<T>>(&self, v: V)
pub fn set_from_old<R: IntoRc<T>, F: 'static + Fn(&Rc<T>) -> R>(
&self,
dispatch: F
)
pub fn set_optional_from_old<R: IntoOptionalRc<T>, F: 'static + Fn(&Rc<T>) -> R>(
&self,
dispatch: F
)
Trait Implementations
sourceimpl<T: ?Sized> Clone for StateSetter<T>
impl<T: ?Sized> Clone for StateSetter<T>
sourceimpl<T: Debug + ?Sized> Debug for StateSetter<T>
impl<T: Debug + ?Sized> Debug for StateSetter<T>
sourceimpl<T: ?Sized> PartialEq<StateSetter<T>> for StateSetter<T>
impl<T: ?Sized> PartialEq<StateSetter<T>> for StateSetter<T>
impl<T: ?Sized> Eq for StateSetter<T>
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for StateSetter<T> where
T: RefUnwindSafe,
impl<T> !Send for StateSetter<T>
impl<T> !Sync for StateSetter<T>
impl<T: ?Sized> Unpin for StateSetter<T> where
T: Unpin,
impl<T: ?Sized> UnwindSafe for StateSetter<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more