pub enum Use<A: AstTypes = DefaultTypes> {
Glob,
Name(A::Symbol),
Alias(A::Symbol, A::Symbol),
Path(A::Symbol, Box<Use<A>>),
Tree(Vec<Use<A>>),
}Expand description
A compound import declaration
Variants§
Glob
“*”
Name(A::Symbol)
Identifier
Alias(A::Symbol, A::Symbol)
Identifier as Identifier
Path(A::Symbol, Box<Use<A>>)
Identifier :: Use
Tree(Vec<Use<A>>)
{ Use, * }
Trait Implementations§
Source§impl<A: AstTypes, B: AstTypes> Foldable<A, B> for Use<A>
impl<A: AstTypes, B: AstTypes> Foldable<A, B> for Use<A>
impl<A: Eq + AstTypes> Eq for Use<A>
impl<A: AstTypes> StructuralPartialEq for Use<A>
Auto Trait Implementations§
impl<A> Freeze for Use<A>
impl<A> RefUnwindSafe for Use<A>
impl<A> Send for Use<A>
impl<A> Sync for Use<A>
impl<A> Unpin for Use<A>
impl<A> UnwindSafe for Use<A>
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