pub struct Vigil<T: ?Sized> { /* private fields */ }
Expand description
Vigil is a smart pointer that implements DropWatch for any type.
Implementations§
Trait Implementations§
source§impl<T: ?Sized> DropWatch<T> for Vigil<T>
impl<T: ?Sized> DropWatch<T> for Vigil<T>
source§impl<T: Unit> Unit for Vigil<T>
impl<T: Unit> Unit for Vigil<T>
§type Data = <T as Unit>::Data
type Data = <T as Unit>::Data
This associated type owns a subtree (either a property or a node) of a parent inspect node.
May be nested. When dropped, the subtree is detached from the parent.
Default is required such that a detached state can be constructed. The base inspect node
and property types implement default.
source§fn inspect_create(&self, parent: &Node, name: impl AsRef<str>) -> Self::Data
fn inspect_create(&self, parent: &Node, name: impl AsRef<str>) -> Self::Data
Insert an inspect subtree at
parent[name]
with values from self
and return
the inspect data.source§fn inspect_update(&self, data: &mut Self::Data)
fn inspect_update(&self, data: &mut Self::Data)
Update the inspect subtree owned by the inspect data with values from self.
Auto Trait Implementations§
impl<T> Freeze for Vigil<T>where
T: ?Sized,
impl<T> RefUnwindSafe for Vigil<T>where
T: RefUnwindSafe + ?Sized,
impl<T> !Send for Vigil<T>
impl<T> !Sync for Vigil<T>
impl<T> Unpin for Vigil<T>where
T: ?Sized,
impl<T> UnwindSafe for Vigil<T>where
T: UnwindSafe + ?Sized,
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