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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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.