pub struct SnapshotRelationship<'a> { /* private fields */ }Expand description
A stored relationship as a snapshot writer reads it.
Implementations§
Source§impl<'a> SnapshotRelationship<'a>
impl<'a> SnapshotRelationship<'a>
pub fn id(self) -> RelationshipId
pub fn src(self) -> NodeId
pub fn dst(self) -> NodeId
Sourcepub fn type_id(self) -> u32
pub fn type_id(self) -> u32
Number in SnapshotNames::types.
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 SnapshotRelationship<'a>
impl<'a> Clone for SnapshotRelationship<'a>
impl<'a> Copy for SnapshotRelationship<'a>
Auto Trait Implementations§
impl<'a> Freeze for SnapshotRelationship<'a>
impl<'a> RefUnwindSafe for SnapshotRelationship<'a>
impl<'a> Send for SnapshotRelationship<'a>
impl<'a> Sync for SnapshotRelationship<'a>
impl<'a> Unpin for SnapshotRelationship<'a>
impl<'a> UnsafeUnpin for SnapshotRelationship<'a>
impl<'a> UnwindSafe for SnapshotRelationship<'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