UseTreeKind in rustc_ast::ast - Rust (original) (raw)

pub enum UseTreeKind {
    Simple(Option<Ident>),
    Nested {
        items: ThinVec<(UseTree, NodeId)>,
        span: Span,
    },
    Glob,
}

Expand description

Part of use item to the right of its prefix.

§

use prefix or use prefix as rename

§

use prefix::{...}

The span represents the braces of the nested group and all elements within:

use foo::{bar, baz};
         ^^^^^^^^^^

Fields

§

use prefix::*

§

§

§

§

§

§

§

§

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: 24 bytes

Size for each variant: