#[repr(usize)]pub enum CycleError {
Cycle {
id: String,
},
NegativeCylce,
}
Variants§
Implementations§
Source§impl CycleError
impl CycleError
Sourcepub const fn is_cycle(&self) -> bool
pub const fn is_cycle(&self) -> bool
Returns true if the enum is CycleError::Cycle otherwise false
Sourcepub const fn is_negative_cylce(&self) -> bool
pub const fn is_negative_cylce(&self) -> bool
Returns true if the enum is CycleError::NegativeCylce otherwise false
Trait Implementations§
Source§impl Clone for CycleError
impl Clone for CycleError
Source§fn clone(&self) -> CycleError
fn clone(&self) -> CycleError
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 CycleError
impl Debug for CycleError
Source§impl<'de> Deserialize<'de> for CycleError
impl<'de> Deserialize<'de> for CycleError
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 Display for CycleError
impl Display for CycleError
Source§impl From<CycleError> for GraphError
impl From<CycleError> for GraphError
Source§fn from(error: CycleError) -> Self
fn from(error: CycleError) -> Self
Converts to this type from the input type.
Source§impl FromStr for CycleError
impl FromStr for CycleError
Source§impl IntoEnumIterator for CycleError
impl IntoEnumIterator for CycleError
type Iterator = CycleErrorIter
fn iter() -> CycleErrorIter ⓘ
Source§impl Serialize for CycleError
impl Serialize for CycleError
Source§impl TryFrom<&str> for CycleError
impl TryFrom<&str> for CycleError
Source§impl VariantNames for CycleError
impl VariantNames for CycleError
Auto Trait Implementations§
impl Freeze for CycleError
impl RefUnwindSafe for CycleError
impl Send for CycleError
impl Sync for CycleError
impl Unpin for CycleError
impl UnwindSafe for CycleError
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