pub enum TypeKind<'hir> {
Primitive(PrimitiveType),
Ref(&'hir Type<'hir>),
Array(&'hir Type<'hir>, u32),
Path(Path),
Function {
is_variadic: bool,
params: &'hir [Type<'hir>],
ret_ty: &'hir Type<'hir>,
},
}Variants§
Trait Implementations§
impl Eq for TypeKind<'_>
Auto Trait Implementations§
impl<'hir> Freeze for TypeKind<'hir>
impl<'hir> !RefUnwindSafe for TypeKind<'hir>
impl<'hir> !Send for TypeKind<'hir>
impl<'hir> !Sync for TypeKind<'hir>
impl<'hir> Unpin for TypeKind<'hir>
impl<'hir> !UnwindSafe for TypeKind<'hir>
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