pub enum Module {
Path(RelativePathBuf),
Global(ItemStr),
}
Expand description
A module being imported.
Variants
Path(RelativePathBuf)
A module imported from a specific path.
The path will be relativized according to the module specified in the Config::with_module_path.
Global(ItemStr)
A globally imported module.
Trait Implementations
sourceimpl Ord for Module
impl Ord for Module
sourceimpl PartialOrd<Module> for Module
impl PartialOrd<Module> for Module
sourcefn partial_cmp(&self, other: &Module) -> Option<Ordering>
fn partial_cmp(&self, other: &Module) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for Module
impl StructuralEq for Module
impl StructuralPartialEq for Module
Auto Trait Implementations
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more