pub enum WalkerError<E> {
RefCycle(TypeId),
DanglingRef(TypeId),
Walker(E),
}Expand description
Errors raised by the walk driver. Walker-specific errors are wrapped
in WalkerError::Walker.
Variants§
RefCycle(TypeId)
A ref cycle was detected during traversal.
DanglingRef(TypeId)
A named ref pointed at a type id that is not declared in the graph.
Walker(E)
The walker rejected the sub-tree.
Trait Implementations§
Source§impl<E> Clone for WalkerError<E>where
E: Clone,
impl<E> Clone for WalkerError<E>where
E: Clone,
Source§fn clone(&self) -> WalkerError<E>
fn clone(&self) -> WalkerError<E>
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<E> Debug for WalkerError<E>where
E: Debug,
impl<E> Debug for WalkerError<E>where
E: Debug,
Source§impl<E> Display for WalkerError<E>where
E: Display,
impl<E> Display for WalkerError<E>where
E: Display,
impl<E> Eq for WalkerError<E>where
E: Eq,
Source§impl<E> Error for WalkerError<E>where
E: Error + 'static,
impl<E> Error for WalkerError<E>where
E: Error + 'static,
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<E> PartialEq for WalkerError<E>where
E: PartialEq,
impl<E> PartialEq for WalkerError<E>where
E: PartialEq,
impl<E> StructuralPartialEq for WalkerError<E>where
E: PartialEq,
Auto Trait Implementations§
impl<E> Freeze for WalkerError<E>where
E: Freeze,
impl<E> RefUnwindSafe for WalkerError<E>where
E: RefUnwindSafe,
impl<E> Send for WalkerError<E>where
E: Send,
impl<E> Sync for WalkerError<E>where
E: Sync,
impl<E> Unpin for WalkerError<E>where
E: Unpin,
impl<E> UnsafeUnpin for WalkerError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for WalkerError<E>where
E: UnwindSafe,
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