StructRest in rustc_ast::ast - Rust (original) (raw)
pub enum StructRest {
Base(Box<Expr>),
Rest(Span),
None,
}Variants§
Base(Box<Expr>)
..x.
Rest(Span)
...
None
No trailing .. or expression.
Trait Implementations§
impl Clone for StructRest
impl Debug for StructRest
impl<__D: SpanDecoder> Decodable<__D> for StructRest
fn decode(__decoder: &mut __D) -> Self
impl<__E: SpanEncoder> Encodable<__E> for StructRest
fn encode(&self, __encoder: &mut __E)
impl<V: MutVisitor> MutVisitable for StructRest
type Extra = ()
fn visit_mut(&mut self, visitor: &mut V, _extra: Self::Extra) -> V::Result
impl<__V> MutWalkable<__V> for StructRest
fn walk_mut(&mut self, __visitor: &mut __V)
impl<'a, V: Visitor<'a>> Visitable<'a, V> for StructRest
type Extra = ()
fn visit(&'a self, visitor: &mut V, _extra: Self::Extra) -> V::Result
impl<'__ast, __V> Walkable<'__ast, __V> for StructRest
fn walk_ref(&'__ast self, __visitor: &mut __V) -> __V::Result
Auto Trait Implementations§
impl DynSend for StructRest
impl DynSync for StructRest
impl Freeze for StructRest
impl RefUnwindSafe for StructRest
impl Send for StructRest
impl Sync for StructRest
impl Unpin for StructRest
impl UnwindSafe for StructRest
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: 16 bytes
Size for each variant:
Base: 12 bytesRest: 8 bytesNone: 0 bytes