pub enum UseTree {
Path {
path: Path,
alias: Option<Ident>,
},
Glob {
path: Path,
},
Group {
path: Path,
items: Vec<Self>,
},
}Expand description
Use tree for imports
Variants§
Path
Simple path: use foo::bar;
Glob
Glob import: use foo::bar::*;
Group
Grouped imports: use foo::{A, B};
Trait Implementations§
impl StructuralPartialEq for UseTree
Auto Trait Implementations§
impl Freeze for UseTree
impl RefUnwindSafe for UseTree
impl Send for UseTree
impl Sync for UseTree
impl Unpin for UseTree
impl UnwindSafe for UseTree
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