#[non_exhaustive]pub enum SankeyError {
Cycle(Vec<usize>),
NoSuchNode(usize),
}Expand description
Why a graph has no layout.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cycle(Vec<usize>)
The flows go in a circle, through these nodes, the first one again at the end.
NoSuchNode(usize)
A flow names a node past the end of the list.
Trait Implementations§
Source§impl Clone for SankeyError
impl Clone for SankeyError
Source§fn clone(&self) -> SankeyError
fn clone(&self) -> SankeyError
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 moreSource§impl Debug for SankeyError
impl Debug for SankeyError
Source§impl Display for SankeyError
impl Display for SankeyError
impl Eq for SankeyError
Source§impl Error for SankeyError
impl Error for SankeyError
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 PartialEq for SankeyError
impl PartialEq for SankeyError
impl StructuralPartialEq for SankeyError
Auto Trait Implementations§
impl Freeze for SankeyError
impl RefUnwindSafe for SankeyError
impl Send for SankeyError
impl Sync for SankeyError
impl Unpin for SankeyError
impl UnsafeUnpin for SankeyError
impl UnwindSafe for SankeyError
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