pub struct VarHandle(/* private fields */);Expand description
Handle to a variable hook.
This can represent a widget subscriber, a var binding, var app handler or animation, dropping the handler stops the behavior it represents.
Implementations§
source§impl VarHandle
impl VarHandle
sourcepub fn perm(self)
pub fn perm(self)
Drop the handle without stopping the behavior it represents.
Note that the behavior can still be stopped by dropping the involved variables.
sourcepub fn with(self, other: Self) -> VarHandles
pub fn with(self, other: Self) -> VarHandles
Create a VarHandles collection with self and other.
Trait Implementations§
source§impl Extend<VarHandle> for VarHandles
impl Extend<VarHandle> for VarHandles
source§fn extend<T: IntoIterator<Item = VarHandle>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = VarHandle>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl FromIterator<VarHandle> for VarHandles
impl FromIterator<VarHandle> for VarHandles
source§impl PartialEq for VarHandle
impl PartialEq for VarHandle
impl Eq for VarHandle
Auto Trait Implementations§
impl Freeze for VarHandle
impl !RefUnwindSafe for VarHandle
impl Send for VarHandle
impl Sync for VarHandle
impl Unpin for VarHandle
impl !UnwindSafe for VarHandle
Blanket Implementations§
source§impl<T> AnyVarValue for Twhere
T: VarValue,
impl<T> AnyVarValue for Twhere
T: VarValue,
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Access to mut
dyn Any methods.source§fn clone_boxed(&self) -> Box<dyn AnyVarValue>
fn clone_boxed(&self) -> Box<dyn AnyVarValue>
Clone the value.
source§fn clone_boxed_var(&self) -> Box<dyn AnyVar>
fn clone_boxed_var(&self) -> Box<dyn AnyVar>
Clone the value into a new boxed
LocalVar<Self>.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