pub struct Computed<T: Clone> { /* private fields */ }Expand description
A computed value (like Vue 3’s computed()).
Lazily evaluates a closure, caching the result and re-evaluating
when its dependencies change.
Implementations§
Auto Trait Implementations§
impl<T> Freeze for Computed<T>
impl<T> !RefUnwindSafe for Computed<T>
impl<T> !Send for Computed<T>
impl<T> !Sync for Computed<T>
impl<T> Unpin for Computed<T>
impl<T> UnsafeUnpin for Computed<T>
impl<T> !UnwindSafe for Computed<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