[][src]Enum fuzzy_pickles::ast::PatternKind

pub enum PatternKind {
    Box(PatternBox),
    Byte(PatternByte),
    ByteString(PatternByteString),
    Character(PatternCharacter),
    Ident(PatternIdent),
    MacroCall(PatternMacroCall),
    Number(PatternNumber),
    RangeExclusive(PatternRangeExclusive),
    RangeInclusive(PatternRangeInclusive),
    Reference(PatternReference),
    Slice(PatternSlice),
    String(PatternString),
    Struct(PatternStruct),
    Tuple(PatternTuple),
}

Variants

ByteString(PatternByteString)
Character(PatternCharacter)
MacroCall(PatternMacroCall)
RangeExclusive(PatternRangeExclusive)
RangeInclusive(PatternRangeInclusive)
Reference(PatternReference)

Implementations

impl PatternKind[src]

pub fn into_box(self) -> Option<PatternBox>[src]

pub fn into_byte(self) -> Option<PatternByte>[src]

pub fn into_byte_string(self) -> Option<PatternByteString>[src]

pub fn into_character(self) -> Option<PatternCharacter>[src]

pub fn into_ident(self) -> Option<PatternIdent>[src]

pub fn into_macro_call(self) -> Option<PatternMacroCall>[src]

pub fn into_number(self) -> Option<PatternNumber>[src]

pub fn into_range_exclusive(self) -> Option<PatternRangeExclusive>[src]

pub fn into_range_inclusive(self) -> Option<PatternRangeInclusive>[src]

pub fn into_reference(self) -> Option<PatternReference>[src]

pub fn into_slice(self) -> Option<PatternSlice>[src]

pub fn into_string(self) -> Option<PatternString>[src]

pub fn into_struct(self) -> Option<PatternStruct>[src]

pub fn into_tuple(self) -> Option<PatternTuple>[src]

pub fn as_box(&self) -> Option<&PatternBox>[src]

pub fn as_byte(&self) -> Option<&PatternByte>[src]

pub fn as_byte_string(&self) -> Option<&PatternByteString>[src]

pub fn as_character(&self) -> Option<&PatternCharacter>[src]

pub fn as_ident(&self) -> Option<&PatternIdent>[src]

pub fn as_macro_call(&self) -> Option<&PatternMacroCall>[src]

pub fn as_number(&self) -> Option<&PatternNumber>[src]

pub fn as_range_exclusive(&self) -> Option<&PatternRangeExclusive>[src]

pub fn as_range_inclusive(&self) -> Option<&PatternRangeInclusive>[src]

pub fn as_reference(&self) -> Option<&PatternReference>[src]

pub fn as_slice(&self) -> Option<&PatternSlice>[src]

pub fn as_string(&self) -> Option<&PatternString>[src]

pub fn as_struct(&self) -> Option<&PatternStruct>[src]

pub fn as_tuple(&self) -> Option<&PatternTuple>[src]

pub fn is_box(&self) -> bool[src]

pub fn is_byte(&self) -> bool[src]

pub fn is_byte_string(&self) -> bool[src]

pub fn is_character(&self) -> bool[src]

pub fn is_ident(&self) -> bool[src]

pub fn is_macro_call(&self) -> bool[src]

pub fn is_number(&self) -> bool[src]

pub fn is_range_exclusive(&self) -> bool[src]

pub fn is_range_inclusive(&self) -> bool[src]

pub fn is_reference(&self) -> bool[src]

pub fn is_slice(&self) -> bool[src]

pub fn is_string(&self) -> bool[src]

pub fn is_struct(&self) -> bool[src]

pub fn is_tuple(&self) -> bool[src]

Trait Implementations

impl Debug for PatternKind[src]

impl HasExtent for PatternKind[src]

impl<'a> Index<&'a PatternKind> for str[src]

type Output = str

The returned type after indexing.

impl Index<PatternKind> for str[src]

type Output = str

The returned type after indexing.

impl Visit for PatternKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.