Struct erg_common::tsort::TopoSortError
source · pub struct TopoSortError {
pub kind: TopoSortErrorKind,
pub msg: String,
}
Fields§
§kind: TopoSortErrorKind
§msg: String
Implementations§
source§impl TopoSortError
impl TopoSortError
pub fn new(kind: TopoSortErrorKind, msg: String) -> Self
pub fn key_not_found(msg: String) -> Self
pub fn cycle_detected(msg: String) -> Self
Trait Implementations§
source§impl Clone for TopoSortError
impl Clone for TopoSortError
source§fn clone(&self) -> TopoSortError
fn clone(&self) -> TopoSortError
Returns a copy 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 TopoSortError
impl Debug for TopoSortError
source§impl Display for TopoSortError
impl Display for TopoSortError
source§impl Error for TopoSortError
impl Error for TopoSortError
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 TopoSortError
impl PartialEq for TopoSortError
impl Eq for TopoSortError
impl StructuralPartialEq for TopoSortError
Auto Trait Implementations§
impl Freeze for TopoSortError
impl RefUnwindSafe for TopoSortError
impl Send for TopoSortError
impl Sync for TopoSortError
impl Unpin for TopoSortError
impl UnwindSafe for TopoSortError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)