Enum syn::UseTree [−][src]
pub enum UseTree {
Path(UsePath),
Name(UseName),
Rename(UseRename),
Glob(UseGlob),
Group(UseGroup),
}Expand description
A suffix of an import tree in a use item: Type as Renamed or *.
This type is available only if Syn is built with the "full" feature.
Syntax tree enum
This type is a syntax tree enum.
Variants
A path prefix of imports in a use item: std::....
Tuple Fields of Path
0: UsePathAn identifier imported by a use item: HashMap.
Tuple Fields of Name
0: UseNameAn renamed identifier imported by a use item: HashMap as Map.
Tuple Fields of Rename
0: UseRenameA glob import in a use item: *.
Tuple Fields of Glob
0: UseGlobA braced group of imports in a use item: {A, B, C}.
Tuple Fields of Group
0: UseGroupTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UseTree
impl UnwindSafe for UseTree
Blanket Implementations
Mutably borrows from an owned value. Read more