Struct yew_hooks::UseSetHandle
source · [−]pub struct UseSetHandle<T> { /* private fields */ }Expand description
State handle for the use_set hook.
Implementations
sourceimpl<T> UseSetHandle<T>
impl<T> UseSetHandle<T>
sourcepub fn replace(&self, value: T) -> Option<T> where
T: Eq + Hash,
pub fn replace(&self, value: T) -> Option<T> where
T: Eq + Hash,
Adds a value to the set, replacing the existing value, if any, that is equal to the given one. Returns the replaced value.
sourcepub fn remove(&self, value: &T) -> bool where
T: Eq + Hash,
pub fn remove(&self, value: &T) -> bool where
T: Eq + Hash,
Removes a value from the set. Returns whether the value was present in the set.
Trait Implementations
sourceimpl<T> Clone for UseSetHandle<T>
impl<T> Clone for UseSetHandle<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for UseSetHandle<T>
impl<T> !Send for UseSetHandle<T>
impl<T> !Sync for UseSetHandle<T>
impl<T> Unpin for UseSetHandle<T>
impl<T> !UnwindSafe for UseSetHandle<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
sourcepub fn into_prop_value(self) -> Option<T>
pub fn into_prop_value(self) -> Option<T>
Convert self to a value of a Properties struct.
sourceimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
sourcepub fn into_prop_value(self) -> T
pub fn into_prop_value(self) -> T
Convert self to a value of a Properties struct.
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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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