[][src]Enum fuzzy_pickles::ast::TypeKind

pub enum TypeKind {
    Array(TypeArray),
    Disambiguation(TypeDisambiguation),
    Function(TypeFunction),
    HigherRankedTraitBounds(TypeHigherRankedTraitBounds),
    DynTrait(TypeDynTrait),
    ImplTrait(TypeImplTrait),
    Named(TypeNamed),
    Pointer(TypePointer),
    Reference(TypeReference),
    Slice(TypeSlice),
    Tuple(TypeTuple),
    Uninhabited(Extent),
}

Variants

Array(TypeArray)
Disambiguation(TypeDisambiguation)
Function(TypeFunction)
HigherRankedTraitBounds(TypeHigherRankedTraitBounds)
DynTrait(TypeDynTrait)
ImplTrait(TypeImplTrait)
Named(TypeNamed)
Pointer(TypePointer)
Reference(TypeReference)
Slice(TypeSlice)
Tuple(TypeTuple)
Uninhabited(Extent)

Implementations

impl TypeKind[src]

pub fn into_array(self) -> Option<TypeArray>[src]

pub fn into_disambiguation(self) -> Option<TypeDisambiguation>[src]

pub fn into_function(self) -> Option<TypeFunction>[src]

pub fn into_higher_ranked_trait_bounds(
    self
) -> Option<TypeHigherRankedTraitBounds>
[src]

pub fn into_dyn_trait(self) -> Option<TypeDynTrait>[src]

pub fn into_impl_trait(self) -> Option<TypeImplTrait>[src]

pub fn into_named(self) -> Option<TypeNamed>[src]

pub fn into_pointer(self) -> Option<TypePointer>[src]

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

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

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

pub fn into_uninhabited(self) -> Option<Extent>[src]

pub fn as_array(&self) -> Option<&TypeArray>[src]

pub fn as_disambiguation(&self) -> Option<&TypeDisambiguation>[src]

pub fn as_function(&self) -> Option<&TypeFunction>[src]

pub fn as_higher_ranked_trait_bounds(
    &self
) -> Option<&TypeHigherRankedTraitBounds>
[src]

pub fn as_dyn_trait(&self) -> Option<&TypeDynTrait>[src]

pub fn as_impl_trait(&self) -> Option<&TypeImplTrait>[src]

pub fn as_named(&self) -> Option<&TypeNamed>[src]

pub fn as_pointer(&self) -> Option<&TypePointer>[src]

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

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

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

pub fn as_uninhabited(&self) -> Option<&Extent>[src]

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

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

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

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

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

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

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

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

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

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

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

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

Trait Implementations

impl Debug for TypeKind[src]

impl HasExtent for TypeKind[src]

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

type Output = str

The returned type after indexing.

impl Index<TypeKind> for str[src]

type Output = str

The returned type after indexing.

impl Visit for TypeKind[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.