pub struct SnapshotNode<'a> { /* private fields */ }Expand description
A stored node as a snapshot writer reads it: names by number in
SnapshotNames, values borrowed.
Implementations§
Source§impl<'a> SnapshotNode<'a>
impl<'a> SnapshotNode<'a>
pub fn id(self) -> NodeId
Sourcepub fn label_ids(self) -> impl ExactSizeIterator<Item = u32> + 'a
pub fn label_ids(self) -> impl ExactSizeIterator<Item = u32> + 'a
Numbers in SnapshotNames::labels, in the node’s order.
Sourcepub fn properties(self) -> impl Iterator<Item = (u32, ValueRef<'a>)> + 'a
pub fn properties(self) -> impl Iterator<Item = (u32, ValueRef<'a>)> + 'a
(number in SnapshotNames::keys, value) in key-name order.
pub fn property_count(self) -> usize
Trait Implementations§
Source§impl<'a> Clone for SnapshotNode<'a>
impl<'a> Clone for SnapshotNode<'a>
impl<'a> Copy for SnapshotNode<'a>
Auto Trait Implementations§
impl<'a> Freeze for SnapshotNode<'a>
impl<'a> RefUnwindSafe for SnapshotNode<'a>
impl<'a> Send for SnapshotNode<'a>
impl<'a> Sync for SnapshotNode<'a>
impl<'a> Unpin for SnapshotNode<'a>
impl<'a> UnsafeUnpin for SnapshotNode<'a>
impl<'a> UnwindSafe for SnapshotNode<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more