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§
Source§impl TypeKind
impl TypeKind
pub fn into_array(self) -> Option<TypeArray>
pub fn into_disambiguation(self) -> Option<TypeDisambiguation>
pub fn into_function(self) -> Option<TypeFunction>
pub fn into_higher_ranked_trait_bounds( self, ) -> Option<TypeHigherRankedTraitBounds>
pub fn into_dyn_trait(self) -> Option<TypeDynTrait>
pub fn into_impl_trait(self) -> Option<TypeImplTrait>
pub fn into_named(self) -> Option<TypeNamed>
pub fn into_pointer(self) -> Option<TypePointer>
pub fn into_reference(self) -> Option<TypeReference>
pub fn into_slice(self) -> Option<TypeSlice>
pub fn into_tuple(self) -> Option<TypeTuple>
pub fn into_uninhabited(self) -> Option<Extent>
pub fn as_array(&self) -> Option<&TypeArray>
pub fn as_disambiguation(&self) -> Option<&TypeDisambiguation>
pub fn as_function(&self) -> Option<&TypeFunction>
pub fn as_higher_ranked_trait_bounds( &self, ) -> Option<&TypeHigherRankedTraitBounds>
pub fn as_dyn_trait(&self) -> Option<&TypeDynTrait>
pub fn as_impl_trait(&self) -> Option<&TypeImplTrait>
pub fn as_named(&self) -> Option<&TypeNamed>
pub fn as_pointer(&self) -> Option<&TypePointer>
pub fn as_reference(&self) -> Option<&TypeReference>
pub fn as_slice(&self) -> Option<&TypeSlice>
pub fn as_tuple(&self) -> Option<&TypeTuple>
pub fn as_uninhabited(&self) -> Option<&Extent>
pub fn is_array(&self) -> bool
pub fn is_disambiguation(&self) -> bool
pub fn is_function(&self) -> bool
pub fn is_higher_ranked_trait_bounds(&self) -> bool
pub fn is_dyn_trait(&self) -> bool
pub fn is_impl_trait(&self) -> bool
pub fn is_named(&self) -> bool
pub fn is_pointer(&self) -> bool
pub fn is_reference(&self) -> bool
pub fn is_slice(&self) -> bool
pub fn is_tuple(&self) -> bool
pub fn is_uninhabited(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeKind
impl RefUnwindSafe for TypeKind
impl Send for TypeKind
impl Sync for TypeKind
impl Unpin for TypeKind
impl UnsafeUnpin for TypeKind
impl UnwindSafe for TypeKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more