pub enum ImportMode {
Direct,
Qualified,
}Expand description
The import mode to use when generating import statements.
Variants§
Direct
Import names without a module prefix.
so for std::fmt::Debug it would import std::fmt::Debug, and use
Debug.
Qualified
Import qualified names with a module prefix.
so for std::fmt::Debug it would import std::fmt, and use
fmt::Debug.
Trait Implementations§
Source§impl Clone for ImportMode
impl Clone for ImportMode
Source§fn clone(&self) -> ImportMode
fn clone(&self) -> ImportMode
Returns a copy 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 ImportMode
impl Debug for ImportMode
Source§impl Hash for ImportMode
impl Hash for ImportMode
Source§impl Ord for ImportMode
impl Ord for ImportMode
Source§fn cmp(&self, other: &ImportMode) -> Ordering
fn cmp(&self, other: &ImportMode) -> Ordering
1.21.0 · 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
Source§impl PartialEq for ImportMode
impl PartialEq for ImportMode
Source§impl PartialOrd for ImportMode
impl PartialOrd for ImportMode
impl Copy for ImportMode
impl Eq for ImportMode
impl StructuralPartialEq for ImportMode
Auto Trait Implementations§
impl Freeze for ImportMode
impl RefUnwindSafe for ImportMode
impl Send for ImportMode
impl Sync for ImportMode
impl Unpin for ImportMode
impl UnwindSafe for ImportMode
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