pub struct Node<T> { /* private fields */ }Expand description
Wrapper marking a compound storage field group.
Derefs to T for field access. The node does not retain its own keypath:
each field handle constructed by T::from already carries the path it
needs, so keeping the parent path would add an unused buffer and require an
otherwise-unnecessary clone during construction.
Trait Implementations§
Source§impl<T: Deletable> Deletable for Node<T>
impl<T: Deletable> Deletable for Node<T>
Source§fn delete_internal(&mut self, exclusive: bool)
fn delete_internal(&mut self, exclusive: bool)
Delete storage for this node. Read more
Source§fn delete_exclusive(&mut self)
fn delete_exclusive(&mut self)
Delete, then request an exclusive lock, regardless of keypath flag.
Later writes in the transaction keep the lock.
impl<T: From<Keypath>> StorageType for Node<T>
Auto Trait Implementations§
impl<T> Freeze for Node<T>where
T: Freeze,
impl<T> RefUnwindSafe for Node<T>where
T: RefUnwindSafe,
impl<T> Send for Node<T>where
T: Send,
impl<T> Sync for Node<T>where
T: Sync,
impl<T> Unpin for Node<T>where
T: Unpin,
impl<T> UnsafeUnpin for Node<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Node<T>where
T: UnwindSafe,
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