pub struct BidirectedEdge<IndexType, EdgeData> {
pub from: NodeIndex<IndexType>,
pub from_forward: bool,
pub to: NodeIndex<IndexType>,
pub to_forward: bool,
pub data: EdgeData,
}Fields§
§from: NodeIndex<IndexType>§from_forward: boolTrue if this edge originates from the forward side of the from node.
to: NodeIndex<IndexType>§to_forward: boolTrue if this edge terminates at the forward side of the to node.
data: EdgeDataTrait Implementations§
Source§impl<IndexType: Clone, EdgeData: Clone> Clone for BidirectedEdge<IndexType, EdgeData>
impl<IndexType: Clone, EdgeData: Clone> Clone for BidirectedEdge<IndexType, EdgeData>
Source§fn clone(&self) -> BidirectedEdge<IndexType, EdgeData>
fn clone(&self) -> BidirectedEdge<IndexType, EdgeData>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<IndexType: PartialEq, EdgeData: PartialEq> PartialEq for BidirectedEdge<IndexType, EdgeData>
impl<IndexType: PartialEq, EdgeData: PartialEq> PartialEq for BidirectedEdge<IndexType, EdgeData>
Source§fn eq(&self, other: &BidirectedEdge<IndexType, EdgeData>) -> bool
fn eq(&self, other: &BidirectedEdge<IndexType, EdgeData>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<IndexType: Eq, EdgeData: Eq> Eq for BidirectedEdge<IndexType, EdgeData>
impl<IndexType, EdgeData> StructuralPartialEq for BidirectedEdge<IndexType, EdgeData>
Auto Trait Implementations§
impl<IndexType, EdgeData> Freeze for BidirectedEdge<IndexType, EdgeData>
impl<IndexType, EdgeData> RefUnwindSafe for BidirectedEdge<IndexType, EdgeData>where
EdgeData: RefUnwindSafe,
IndexType: RefUnwindSafe,
impl<IndexType, EdgeData> Send for BidirectedEdge<IndexType, EdgeData>
impl<IndexType, EdgeData> Sync for BidirectedEdge<IndexType, EdgeData>
impl<IndexType, EdgeData> Unpin for BidirectedEdge<IndexType, EdgeData>
impl<IndexType, EdgeData> UnwindSafe for BidirectedEdge<IndexType, EdgeData>where
EdgeData: UnwindSafe,
IndexType: 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