UseTree in rustc_ast::ast - Rust (original) (raw)
pub struct UseTree {
pub prefix: Path,
pub kind: UseTreeKind,
pub span: Span,
}Expand description
A tree of paths sharing common prefixes. Used in use items both at top-level and inside of braces in import groups.
Fields§
§prefix: [Path](struct.Path.html "struct rustc_ast::ast::Path")§kind: [UseTreeKind](enum.UseTreeKind.html "enum rustc_ast::ast::UseTreeKind")§span: [Span](../../rustc%5Fspan/span%5Fencoding/struct.Span.html "struct rustc_span::span_encoding::Span")
Implementations§
Trait Implementations§
impl Clone for UseTree
impl Debug for UseTree
impl<__D: SpanDecoder> Decodable<__D> for UseTree
fn decode(__decoder: &mut __D) -> Self
impl<__E: SpanEncoder> Encodable<__E> for UseTree
fn encode(&self, __encoder: &mut __E)
impl<V: MutVisitor> MutVisitable for UseTree
type Extra = ()
fn visit_mut(&mut self, visitor: &mut V, extra: Self::Extra) -> V::Result
impl<__V> MutWalkable<__V> for UseTree
fn walk_mut(&mut self, __visitor: &mut __V)
impl<'a, V: Visitor<'a>> Visitable<'a, V> for UseTree
type Extra = ()
fn visit(&'a self, visitor: &mut V, extra: Self::Extra) -> V::Result
impl<'__ast, __V> Walkable<'__ast, __V> for UseTree
fn walk_ref(&'__ast self, __visitor: &mut __V) -> __V::Result
Auto Trait Implementations§
impl DynSend for UseTree
impl DynSync for UseTree
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§
Layout§
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: 56 bytes