#[repr(usize)]pub enum GraphError {
Cycle(CycleError),
Unknown(String),
}
Variants§
Cycle(CycleError)
Unknown(String)
Implementations§
Source§impl GraphError
impl GraphError
Sourcepub const fn is_cycle(&self) -> bool
pub const fn is_cycle(&self) -> bool
Returns true if the enum is GraphError::Cycle otherwise false
Sourcepub const fn is_unknown(&self) -> bool
pub const fn is_unknown(&self) -> bool
Returns true if the enum is GraphError::Unknown otherwise false
Trait Implementations§
Source§impl Clone for GraphError
impl Clone for GraphError
Source§fn clone(&self) -> GraphError
fn clone(&self) -> GraphError
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 GraphError
impl Debug for GraphError
Source§impl<'de> Deserialize<'de> for GraphError
impl<'de> Deserialize<'de> for GraphError
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 GraphError
impl Display for GraphError
Source§impl Error for GraphError
impl Error for GraphError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<&str> for GraphError
impl From<&str> for GraphError
Source§impl<Idx> From<Cycle<Idx>> for GraphError
impl<Idx> From<Cycle<Idx>> for GraphError
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 From<NegativeCycle> for GraphError
impl From<NegativeCycle> for GraphError
Source§fn from(_error: NegativeCycle) -> Self
fn from(_error: NegativeCycle) -> Self
Converts to this type from the input type.
Source§impl From<String> for GraphError
impl From<String> for GraphError
Source§impl Serialize for GraphError
impl Serialize for GraphError
Source§impl VariantNames for GraphError
impl VariantNames for GraphError
impl Send for GraphError
impl Sync for GraphError
Auto Trait Implementations§
impl Freeze for GraphError
impl RefUnwindSafe for GraphError
impl Unpin for GraphError
impl UnwindSafe for GraphError
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