pub struct ImportCycle {
pub modules: Vec<String>,
}Expand description
A circular import chain detected among a set of modules.
modules contains the module names involved in the
cycle. The first and last elements are the same module to make the cycle
easy to read, e.g. ["A", "B", "C", "A"] means A imports from B, B from
C, and C back from A.
Fields§
§modules: Vec<String>Module names forming the cycle (first == last to show closure).
Implementations§
Trait Implementations§
Source§impl Clone for ImportCycle
impl Clone for ImportCycle
Source§fn clone(&self) -> ImportCycle
fn clone(&self) -> ImportCycle
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 ImportCycle
impl Debug for ImportCycle
Source§impl PartialEq for ImportCycle
impl PartialEq for ImportCycle
impl Eq for ImportCycle
impl StructuralPartialEq for ImportCycle
Auto Trait Implementations§
impl Freeze for ImportCycle
impl RefUnwindSafe for ImportCycle
impl Send for ImportCycle
impl Sync for ImportCycle
impl Unpin for ImportCycle
impl UnsafeUnpin for ImportCycle
impl UnwindSafe for ImportCycle
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