pub enum NeighborMode {
Out,
In,
All,
}Expand description
Which neighbors (or incident edges) to consider in directed graphs
(igraph_neimode_t). Ignored for undirected graphs.
Variants§
Out
Follow edges along their direction (successors).
In
Follow edges against their direction (predecessors).
All
Ignore edge directions.
Implementations§
Source§impl NeighborMode
impl NeighborMode
Trait Implementations§
Source§impl Clone for NeighborMode
impl Clone for NeighborMode
Source§fn clone(&self) -> NeighborMode
fn clone(&self) -> NeighborMode
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 Copy for NeighborMode
Source§impl Debug for NeighborMode
impl Debug for NeighborMode
impl Eq for NeighborMode
Source§impl From<NeighborMode> for igraph_neimode_t
impl From<NeighborMode> for igraph_neimode_t
Source§fn from(value: NeighborMode) -> igraph_neimode_t
fn from(value: NeighborMode) -> igraph_neimode_t
Converts to this type from the input type.
Source§impl Hash for NeighborMode
impl Hash for NeighborMode
Source§impl PartialEq for NeighborMode
impl PartialEq for NeighborMode
Source§fn eq(&self, other: &NeighborMode) -> bool
fn eq(&self, other: &NeighborMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NeighborMode
Auto Trait Implementations§
impl Freeze for NeighborMode
impl RefUnwindSafe for NeighborMode
impl Send for NeighborMode
impl Sync for NeighborMode
impl Unpin for NeighborMode
impl UnsafeUnpin for NeighborMode
impl UnwindSafe for NeighborMode
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