pub struct Scope { /* private fields */ }Expand description
Deterministic ownership scope managing the lifetime of reactive primitives and cleanups.
Implementations§
Source§impl Scope
Ownership lifecycle operations for Scope.
impl Scope
Ownership lifecycle operations for Scope.
Sourcepub fn dispose(&self)
pub fn dispose(&self)
Disposes this scope, all child scopes, owned reactive nodes, and executes all registered cleanups.
§Arguments
&Self- Scope handle to dispose.
Sourcepub fn freeze(&self)
pub fn freeze(&self)
Freezes all effects owned by this scope and its descendant scopes while tracking cross-page signal dirtiness.
§Arguments
&Self- Scope handle to freeze.
Trait Implementations§
impl Copy for Scope
impl Eq for Scope
Source§impl Ord for Scope
impl Ord for Scope
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Scope
impl PartialOrd for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Forget for Scope
impl Freeze for Scope
impl Move for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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