pub struct WriteLockedGraph<'a> {
pub nodes: WriteLockedNodes<'a>,
pub edges: WriteLockedEdges<'a>,
pub graph: &'a TemporalGraph,
}Fields§
§nodes: WriteLockedNodes<'a>§edges: WriteLockedEdges<'a>§graph: &'a TemporalGraphImplementations§
Source§impl<'a> WriteLockedGraph<'a>
impl<'a> WriteLockedGraph<'a>
pub fn num_nodes(&self) -> usize
pub fn resolve_node( &self, gid: GidRef<'_>, ) -> Result<MaybeNew<VID>, InvalidNodeId>
pub fn resolve_node_type(&self, node_type: Option<&str>) -> MaybeNew<usize>
pub fn num_shards(&self) -> usize
pub fn edges_mut(&mut self) -> &mut WriteLockedEdges<'a>
pub fn graph(&self) -> &TemporalGraph
Auto Trait Implementations§
impl<'a> Freeze for WriteLockedGraph<'a>
impl<'a> !RefUnwindSafe for WriteLockedGraph<'a>
impl<'a> Send for WriteLockedGraph<'a>
impl<'a> Sync for WriteLockedGraph<'a>
impl<'a> Unpin for WriteLockedGraph<'a>
impl<'a> UnsafeUnpin for WriteLockedGraph<'a>
impl<'a> !UnwindSafe for WriteLockedGraph<'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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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