pub enum EdgeTypeSw {
Simple,
Loops,
Multi,
}Expand description
Which kind of edges a random generator may produce (igraph_edge_type_sw_t).
Variants§
Simple
Only simple graphs: no loops, no multi-edges.
Loops
Self-loops allowed.
Multi
Multi-edges allowed.
Trait Implementations§
Source§impl BitOr for EdgeTypeSw
impl BitOr for EdgeTypeSw
Source§type Output = AllowedEdgeTypes
type Output = AllowedEdgeTypes
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: Self) -> AllowedEdgeTypes
fn bitor(self, rhs: Self) -> AllowedEdgeTypes
Performs the
| operation. Read moreSource§impl BitOr<EdgeTypeSw> for AllowedEdgeTypes
impl BitOr<EdgeTypeSw> for AllowedEdgeTypes
Source§type Output = AllowedEdgeTypes
type Output = AllowedEdgeTypes
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: EdgeTypeSw) -> Self
fn bitor(self, rhs: EdgeTypeSw) -> Self
Performs the
| operation. Read moreSource§impl Clone for EdgeTypeSw
impl Clone for EdgeTypeSw
Source§fn clone(&self) -> EdgeTypeSw
fn clone(&self) -> EdgeTypeSw
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 EdgeTypeSw
Source§impl Debug for EdgeTypeSw
impl Debug for EdgeTypeSw
impl Eq for EdgeTypeSw
Source§impl From<EdgeTypeSw> for igraph_edge_type_sw_t
impl From<EdgeTypeSw> for igraph_edge_type_sw_t
Source§fn from(value: EdgeTypeSw) -> igraph_edge_type_sw_t
fn from(value: EdgeTypeSw) -> igraph_edge_type_sw_t
Converts to this type from the input type.
Source§impl From<EdgeTypeSw> for AllowedEdgeTypes
impl From<EdgeTypeSw> for AllowedEdgeTypes
Source§fn from(sw: EdgeTypeSw) -> Self
fn from(sw: EdgeTypeSw) -> Self
Converts to this type from the input type.
Source§impl Hash for EdgeTypeSw
impl Hash for EdgeTypeSw
Source§impl PartialEq for EdgeTypeSw
impl PartialEq for EdgeTypeSw
Source§fn eq(&self, other: &EdgeTypeSw) -> bool
fn eq(&self, other: &EdgeTypeSw) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EdgeTypeSw
Auto Trait Implementations§
impl Freeze for EdgeTypeSw
impl RefUnwindSafe for EdgeTypeSw
impl Send for EdgeTypeSw
impl Sync for EdgeTypeSw
impl Unpin for EdgeTypeSw
impl UnsafeUnpin for EdgeTypeSw
impl UnwindSafe for EdgeTypeSw
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