pub struct UseStateSetter<T> { /* private fields */ }
Expand description
Setter handle for use_state
and use_state_eq
hook
Implementations§
Source§impl<T> UseStateSetter<T>
impl<T> UseStateSetter<T>
Sourcepub fn to_callback(&self) -> Callback<T>
pub fn to_callback(&self) -> Callback<T>
Get a callback, invoking which is equivalent to calling set()
on this same setter.
Trait Implementations§
Source§impl<T> Clone for UseStateSetter<T>
impl<T> Clone for UseStateSetter<T>
Source§impl<T> Debug for UseStateSetter<T>where
T: Debug,
impl<T> Debug for UseStateSetter<T>where
T: Debug,
Source§impl<T> From<UseStateSetter<T>> for Callback<T>
impl<T> From<UseStateSetter<T>> for Callback<T>
Source§fn from(value: UseStateSetter<T>) -> Self
fn from(value: UseStateSetter<T>) -> Self
Converts to this type from the input type.
Source§impl<T> IntoPropValue<Callback<T>> for UseStateSetter<T>
impl<T> IntoPropValue<Callback<T>> for UseStateSetter<T>
Source§fn into_prop_value(self) -> Callback<T>
fn into_prop_value(self) -> Callback<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> PartialEq for UseStateSetter<T>
impl<T> PartialEq for UseStateSetter<T>
Auto Trait Implementations§
impl<T> Freeze for UseStateSetter<T>
impl<T> !RefUnwindSafe for UseStateSetter<T>
impl<T> !Send for UseStateSetter<T>
impl<T> !Sync for UseStateSetter<T>
impl<T> Unpin for UseStateSetter<T>
impl<T> !UnwindSafe for UseStateSetter<T>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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.