Struct rustc_resolve::Segment [−][src]
Expand description
A minimal representation of a path segment. We use this in resolve because we synthesize ‘path
segments’ which don’t have the rest of an AST or HIR PathSegment
.
Fields
ident: Ident
id: Option<NodeId>
has_generic_args: bool
Signals whether this PathSegment
has generic arguments. Used to avoid providing
nonsensical suggestions.
Implementations
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Segment
impl UnwindSafe for Segment
Blanket Implementations
Mutably borrows from an owned value. Read more
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: 20 bytes