Struct yew_hooks::UseCounterHandle
source · [−]pub struct UseCounterHandle { /* private fields */ }Expand description
State handle for the use_counter hook.
Implementations
sourceimpl UseCounterHandle
impl UseCounterHandle
sourcepub fn increase_by(&self, delta: i32)
pub fn increase_by(&self, delta: i32)
Increase by delta.
sourcepub fn decrease_by(&self, delta: i32)
pub fn decrease_by(&self, delta: i32)
Decrease by delta.
Trait Implementations
sourceimpl Clone for UseCounterHandle
impl Clone for UseCounterHandle
sourceimpl Debug for UseCounterHandle
impl Debug for UseCounterHandle
sourceimpl Deref for UseCounterHandle
impl Deref for UseCounterHandle
Auto Trait Implementations
impl !RefUnwindSafe for UseCounterHandle
impl !Send for UseCounterHandle
impl !Sync for UseCounterHandle
impl Unpin for UseCounterHandle
impl !UnwindSafe for UseCounterHandle
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