Enum genco::lang::rust::ImportMode
source · 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<ImportMode> for ImportMode
impl PartialEq<ImportMode> for ImportMode
source§fn eq(&self, other: &ImportMode) -> bool
fn eq(&self, other: &ImportMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ImportMode> for ImportMode
impl PartialOrd<ImportMode> for ImportMode
source§fn partial_cmp(&self, other: &ImportMode) -> Option<Ordering>
fn partial_cmp(&self, other: &ImportMode) -> Option<Ordering>
1.0.0 · source§fn 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