Struct graph_theory::GraphError
source · pub struct GraphError { /* private fields */ }
Implementations§
source§impl GraphError
impl GraphError
pub fn custom<S>(message: S) -> GraphErrorwhere S: ToString,
pub fn node_out_of_range(index: usize, max: usize) -> GraphError
pub fn edge_out_of_range(index: usize, max: usize) -> GraphError
Trait Implementations§
source§impl Debug for GraphError
impl Debug for GraphError
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)>
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()
Auto Trait Implementations§
impl RefUnwindSafe for GraphError
impl Send for GraphError
impl Sync 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