pub struct ImportFact {
pub raw: String,
pub line: u32,
}Expand description
One import as written in the source.
Fields§
§raw: StringThe module path or specifier as written, normalised per language:
a Rust use path with any group expanded (a::b::c) or a module
declaration (mod x); a Python dotted module (a.b, .sibling); a
TypeScript or JavaScript specifier (./util); a Go import path.
line: u321-based line of the import.
Trait Implementations§
Source§impl Clone for ImportFact
impl Clone for ImportFact
Source§impl Debug for ImportFact
impl Debug for ImportFact
impl Eq for ImportFact
Source§impl Ord for ImportFact
impl Ord for ImportFact
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ImportFact
impl PartialEq for ImportFact
Source§impl PartialOrd for ImportFact
impl PartialOrd for ImportFact
impl StructuralPartialEq for ImportFact
Auto Trait Implementations§
impl Freeze for ImportFact
impl RefUnwindSafe for ImportFact
impl Send for ImportFact
impl Sync for ImportFact
impl Unpin for ImportFact
impl UnsafeUnpin for ImportFact
impl UnwindSafe for ImportFact
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