pub struct CanvasIndexedGraph<'a> { /* private fields */ }Implementations§
Source§impl<'a> CanvasIndexedGraph<'a>
impl<'a> CanvasIndexedGraph<'a>
pub fn new(document: &'a CanvasDocument, index: &'a CanvasGraphIndex) -> Self
pub fn document(&self) -> &'a CanvasDocument
pub fn index(&self) -> &'a CanvasGraphIndex
pub fn node(&self, id: &NodeId) -> Option<&'a CanvasNode>
pub fn edge(&self, id: &EdgeId) -> Option<&'a CanvasEdge>
pub fn endpoint_node(&self, endpoint: &CanvasEndpoint) -> Option<&'a CanvasNode>
pub fn endpoint_handle( &self, endpoint: &CanvasEndpoint, ) -> Option<&'a CanvasHandle>
pub fn outgoing_edges<'q>(
&'q self,
node_id: &'q NodeId,
) -> impl Iterator<Item = &'a CanvasEdge> + 'qwhere
'a: 'q,
pub fn incoming_edges<'q>(
&'q self,
node_id: &'q NodeId,
) -> impl Iterator<Item = &'a CanvasEdge> + 'qwhere
'a: 'q,
pub fn incident_edges<'q>(
&'q self,
node_id: &'q NodeId,
) -> impl Iterator<Item = &'a CanvasEdge> + 'qwhere
'a: 'q,
pub fn edges_for_node<'q>(
&'q self,
node_id: &'q NodeId,
direction: CanvasEdgeDirection,
) -> Box<dyn Iterator<Item = &'a CanvasEdge> + 'q>where
'a: 'q,
pub fn edges_between<'q>(
&'q self,
source: &'q NodeId,
target: &'q NodeId,
) -> impl Iterator<Item = &'a CanvasEdge> + 'qwhere
'a: 'q,
pub fn has_edge_between(&self, source: &NodeId, target: &NodeId) -> bool
pub fn neighbor_node_ids<'q>(
&'q self,
node_id: &'q NodeId,
direction: CanvasEdgeDirection,
) -> Box<dyn Iterator<Item = &'a NodeId> + 'q>where
'a: 'q,
pub fn incident_edge_count(&self, node_id: &NodeId) -> usize
Trait Implementations§
Source§impl<'a> Clone for CanvasIndexedGraph<'a>
impl<'a> Clone for CanvasIndexedGraph<'a>
Source§fn clone(&self) -> CanvasIndexedGraph<'a>
fn clone(&self) -> CanvasIndexedGraph<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for CanvasIndexedGraph<'a>
Auto Trait Implementations§
impl<'a> Freeze for CanvasIndexedGraph<'a>
impl<'a> RefUnwindSafe for CanvasIndexedGraph<'a>
impl<'a> Send for CanvasIndexedGraph<'a>
impl<'a> Sync for CanvasIndexedGraph<'a>
impl<'a> Unpin for CanvasIndexedGraph<'a>
impl<'a> UnsafeUnpin for CanvasIndexedGraph<'a>
impl<'a> UnwindSafe for CanvasIndexedGraph<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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