pub struct DirectedNodeIndex<IndexType>(/* private fields */);Implementations§
Source§impl<IndexType> DirectedNodeIndex<IndexType>
impl<IndexType> DirectedNodeIndex<IndexType>
Source§impl<IndexType: GraphIndexInteger> DirectedNodeIndex<IndexType>
impl<IndexType: GraphIndexInteger> DirectedNodeIndex<IndexType>
pub fn from_bidirected(bidirected: NodeIndex<IndexType>, forward: bool) -> Self
pub fn into_bidirected(self) -> NodeIndex<IndexType>
pub fn invert(self) -> Self
pub fn is_forward(self) -> bool
pub fn is_reverse(self) -> bool
Trait Implementations§
Source§impl<IndexType: Clone> Clone for DirectedNodeIndex<IndexType>
impl<IndexType: Clone> Clone for DirectedNodeIndex<IndexType>
Source§impl<IndexType: Debug> Debug for DirectedNodeIndex<IndexType>
impl<IndexType: Debug> Debug for DirectedNodeIndex<IndexType>
Source§impl<IndexType: Display> Display for DirectedNodeIndex<IndexType>
impl<IndexType: Display> Display for DirectedNodeIndex<IndexType>
Source§impl<IndexType: UpperBounded + Eq + Debug> From<DirectedNodeIndex<IndexType>> for OptionalDirectedNodeIndex<IndexType>
impl<IndexType: UpperBounded + Eq + Debug> From<DirectedNodeIndex<IndexType>> for OptionalDirectedNodeIndex<IndexType>
Source§fn from(index: DirectedNodeIndex<IndexType>) -> Self
fn from(index: DirectedNodeIndex<IndexType>) -> Self
Converts to this type from the input type.
Source§impl<IndexType: UpperBounded + Eq + Debug + TryInto<usize>> From<DirectedNodeIndex<IndexType>> for usize
impl<IndexType: UpperBounded + Eq + Debug + TryInto<usize>> From<DirectedNodeIndex<IndexType>> for usize
Source§fn from(value: DirectedNodeIndex<IndexType>) -> Self
fn from(value: DirectedNodeIndex<IndexType>) -> Self
Converts to this type from the input type.
Source§impl<IndexType: UpperBounded + Eq + Debug + TryFrom<usize>> From<usize> for DirectedNodeIndex<IndexType>
impl<IndexType: UpperBounded + Eq + Debug + TryFrom<usize>> From<usize> for DirectedNodeIndex<IndexType>
Source§impl<IndexType: Hash> Hash for DirectedNodeIndex<IndexType>
impl<IndexType: Hash> Hash for DirectedNodeIndex<IndexType>
Source§impl<IndexType: Ord> Ord for DirectedNodeIndex<IndexType>
impl<IndexType: Ord> Ord for DirectedNodeIndex<IndexType>
Source§impl<IndexType: PartialEq> PartialEq for DirectedNodeIndex<IndexType>
impl<IndexType: PartialEq> PartialEq for DirectedNodeIndex<IndexType>
Source§impl<IndexType: PartialOrd> PartialOrd for DirectedNodeIndex<IndexType>
impl<IndexType: PartialOrd> PartialOrd for DirectedNodeIndex<IndexType>
impl<IndexType: Copy> Copy for DirectedNodeIndex<IndexType>
impl<IndexType: Eq> Eq for DirectedNodeIndex<IndexType>
Auto Trait Implementations§
impl<IndexType> Freeze for DirectedNodeIndex<IndexType>where
IndexType: Freeze,
impl<IndexType> RefUnwindSafe for DirectedNodeIndex<IndexType>where
IndexType: RefUnwindSafe,
impl<IndexType> Send for DirectedNodeIndex<IndexType>where
IndexType: Send,
impl<IndexType> Sync for DirectedNodeIndex<IndexType>where
IndexType: Sync,
impl<IndexType> Unpin for DirectedNodeIndex<IndexType>where
IndexType: Unpin,
impl<IndexType> UnwindSafe for DirectedNodeIndex<IndexType>where
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