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

pub enum MatchKind {
    Prefix,
    Postfix,
}

Expand description

The kind of match expression

Variants§

§

Prefix

match expr { … }

§

Postfix

expr.match { … }

Trait Implementations§

Source§

impl Clone for MatchKind

Source§

impl Debug for MatchKind

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<V: MutVisitor> MutVisitable for MatchKind

Source§

type Extra = ()

Source§

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

Source§

impl<__V> MutWalkable<__V> for MatchKind

Source§

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

Source§

impl PartialEq for MatchKind

Source§

fn eq(&self, other: &MatchKind) -> bool

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§

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

Source§

type Extra = ()

Source§

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

Source§

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

Source§

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

Source§

impl Copy for MatchKind

Source§

impl StructuralPartialEq for MatchKind

Auto Trait Implementations§

§

impl DynSend for MatchKind

§

impl DynSync for MatchKind

§

impl Freeze for MatchKind

§

impl RefUnwindSafe for MatchKind

§

impl Send for MatchKind

§

impl Sync for MatchKind

§

impl Unpin for MatchKind

§

impl UnwindSafe for MatchKind

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: 1 byte

Size for each variant: