pub enum TypeKind {
Named {
path: Vec<Ident>,
args: Vec<Type>,
},
Fn {
is_async: bool,
params: Vec<Param>,
return_type: Option<Box<Type>>,
},
Dyn(Ident),
Unit,
}Variants§
Named
Int, Array<T>, http.Request, Result<T, E>.
Fn
async fn(request: http.Request) -> Result<http.Response, Error>
Dyn(Ident)
dyn Display: a value of any type that conforms to the trait,
carrying its implementation with it.
Unit
()
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