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
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
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