pub struct NormalizedImport {
pub path: String,
pub wildcard: bool,
pub unqualified: Option<String>,
}Expand description
Normalized import for easier downstream resolution
Fields§
§path: StringDot-joined package path (e.g., “pkg.sub”) or class path (e.g., “Point”)
wildcard: boolTrue if the import was a wildcard (e.g., pkg.*)
unqualified: Option<String>For specific imports, the unqualified last segment (e.g., “Class”). None for wildcard
Trait Implementations§
Source§impl Clone for NormalizedImport
impl Clone for NormalizedImport
Source§fn clone(&self) -> NormalizedImport
fn clone(&self) -> NormalizedImport
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 NormalizedImport
impl Debug for NormalizedImport
Source§impl PartialEq for NormalizedImport
impl PartialEq for NormalizedImport
impl Eq for NormalizedImport
impl StructuralPartialEq for NormalizedImport
Auto Trait Implementations§
impl Freeze for NormalizedImport
impl RefUnwindSafe for NormalizedImport
impl Send for NormalizedImport
impl Sync for NormalizedImport
impl Unpin for NormalizedImport
impl UnwindSafe for NormalizedImport
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.