#[non_exhaustive]pub enum GroupItem {
Simple(String),
Aliased {
name: String,
alias: String,
},
SelfItem {
alias: Option<String>,
},
Glob,
Nested {
prefix: Vec<String>,
items: Vec<Self>,
},
}Expand description
Item within a grouped import {...}.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Simple(String)
Simple name: HashMap
Aliased
Aliased: HashMap as Map
SelfItem
Self reference: self or self as Alias
Glob
Glob in group: *
Nested
Nested group: io::{Read, Write}
Trait Implementations§
impl Eq for GroupItem
impl StructuralPartialEq for GroupItem
Auto Trait Implementations§
impl Freeze for GroupItem
impl RefUnwindSafe for GroupItem
impl Send for GroupItem
impl Sync for GroupItem
impl Unpin for GroupItem
impl UnsafeUnpin for GroupItem
impl UnwindSafe for GroupItem
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