pub enum Mode {
Directed = 0,
Undirected = 1,
}
Expand description
Mode
enumerates the possible graph variants enabling dynamic dispatch features.
Variants§
Implementations§
Source§impl Mode
impl Mode
Sourcepub const fn is_directed(&self) -> bool
pub const fn is_directed(&self) -> bool
Returns true if the enum is Mode::Directed otherwise false
Sourcepub const fn is_undirected(&self) -> bool
pub const fn is_undirected(&self) -> bool
Returns true if the enum is Mode::Undirected otherwise false
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mode
impl<'de> Deserialize<'de> for Mode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Mode
impl Ord for Mode
Source§impl PartialOrd for Mode
impl PartialOrd for Mode
Source§impl VariantNames for Mode
impl VariantNames for Mode
impl Copy for Mode
impl Eq for Mode
impl GraphType for Mode
impl Send for Mode
impl StructuralPartialEq for Mode
impl Sync for Mode
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> AsWeight<T> for Twhere
T: Clone + IntoWeight<T>,
impl<T> AsWeight<T> for Twhere
T: Clone + IntoWeight<T>,
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