pub enum SimpleMode {
DirectedAsDirected,
DirectedAsUndirected,
}Expand description
Direction-handling for is_simple_with_mode. Counterpart of
upstream’s directed boolean parameter.
On undirected graphs both modes produce the same answer.
Variants§
DirectedAsDirected
(a, b) and (b, a) are distinct directed edges. Default;
matches what plain is_simple returns.
DirectedAsUndirected
(a, b) and (b, a) collapse to the same undirected edge,
so a mutual pair is reported as a multi-edge.
Trait Implementations§
Source§impl Clone for SimpleMode
impl Clone for SimpleMode
Source§fn clone(&self) -> SimpleMode
fn clone(&self) -> SimpleMode
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 Debug for SimpleMode
impl Debug for SimpleMode
Source§impl PartialEq for SimpleMode
impl PartialEq for SimpleMode
impl Copy for SimpleMode
impl Eq for SimpleMode
impl StructuralPartialEq for SimpleMode
Auto Trait Implementations§
impl Freeze for SimpleMode
impl RefUnwindSafe for SimpleMode
impl Send for SimpleMode
impl Sync for SimpleMode
impl Unpin for SimpleMode
impl UnsafeUnpin for SimpleMode
impl UnwindSafe for SimpleMode
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