Enum rustfmt_nightly::config::options::__define_config_type_on_enum_ImportGranularity::ImportGranularity
source · [−]pub enum ImportGranularity {
Preserve,
Crate,
Module,
Item,
One,
}Variants
Preserve
Do not merge imports.
Crate
Use one use statement per crate.
Module
Use one use statement per module.
Item
Use one use statement per imported item.
One
Use one use statement including all items.
Trait Implementations
sourceimpl Clone for ImportGranularity
impl Clone for ImportGranularity
sourcefn clone(&self) -> ImportGranularity
fn clone(&self) -> ImportGranularity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl ConfigType for ImportGranularity
impl ConfigType for ImportGranularity
sourceimpl Debug for ImportGranularity
impl Debug for ImportGranularity
sourceimpl<'de> Deserialize<'de> for ImportGranularity
impl<'de> Deserialize<'de> for ImportGranularity
sourcefn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for ImportGranularity
impl Display for ImportGranularity
sourceimpl FromStr for ImportGranularity
impl FromStr for ImportGranularity
sourceimpl Serialize for ImportGranularity
impl Serialize for ImportGranularity
impl Copy for ImportGranularity
impl Eq for ImportGranularity
impl StructuralEq for ImportGranularity
impl StructuralPartialEq for ImportGranularity
Auto Trait Implementations
impl RefUnwindSafe for ImportGranularity
impl Send for ImportGranularity
impl Sync for ImportGranularity
impl Unpin for ImportGranularity
impl UnwindSafe for ImportGranularity
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
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Preserve: 0 bytesCrate: 0 bytesModule: 0 bytesItem: 0 bytesOne: 0 bytes