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

pub enum Term {
    Ty(Box<Ty>),
    Const(AnonConst),
}

Variants§

§

Ty(Box<Ty>)

§

Const(AnonConst)

Trait Implementations§

Source§

impl Clone for Term

Source§

impl Debug for Term

Source§

impl<__D: SpanDecoder> Decodable<__D> for Term

Source§

fn decode(__decoder: &mut __D) -> Self

Source§

impl<__E: SpanEncoder> Encodable<__E> for Term

Source§

fn encode(&self, __encoder: &mut __E)

Source§

impl From<AnonConst> for Term

Source§

impl From<Box<Ty>> for Term

Source§

impl<V: MutVisitor> MutVisitable for Term

Source§

type Extra = ()

Source§

fn visit_mut(&mut self, visitor: &mut V, _extra: Self::Extra) -> V::Result

Source§

impl<__V> MutWalkable<__V> for Term

Source§

fn walk_mut(&mut self, __visitor: &mut __V)

Source§

impl<'a, V: Visitor<'a>> Visitable<'a, V> for Term

Source§

type Extra = ()

Source§

fn visit(&'a self, visitor: &mut V, _extra: Self::Extra) -> V::Result

Source§

impl<'__ast, __V> Walkable<'__ast, __V> for Term

Source§

fn walk_ref(&'__ast self, __visitor: &mut __V) -> __V::Result

Auto Trait Implementations§

§

impl DynSend for Term

§

impl DynSync for Term

§

impl Freeze for Term

§

impl RefUnwindSafe for Term

§

impl Send for Term

§

impl Sync for Term

§

impl Unpin for Term

§

impl UnwindSafe for Term

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: