pub enum TyKind {
Show 14 variants
ImplTrait,
Parenthesized,
TraitObject,
TypePath,
TupleType,
NeverType,
RawPointerType,
ReferenceType,
ArrayType,
SliceType,
InferredType,
QualifiedPathInType,
BareFunctionType,
MacroInvocation,
}
Expand description
TyKidn definition for the Rust language.
a formal defintion of it is available at https://doc.rust-lang.org/stable/reference/types.html#type-expressions
Variants§
ImplTrait
Parenthesized
TraitObject
TypePath
TupleType
NeverType
RawPointerType
ReferenceType
ArrayType
SliceType
InferredType
QualifiedPathInType
BareFunctionType
MacroInvocation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TyKind
impl RefUnwindSafe for TyKind
impl Send for TyKind
impl Sync for TyKind
impl Unpin for TyKind
impl UnwindSafe for TyKind
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