Module ty

Source

Modules§

parsing 🔒
printing 🔒

Structs§

Abi
The binary interface of a function: extern "C".
BareFnArg
An argument in a function type: the usize in fn(usize) -> bool.
BareVariadic
The variadic argument of a function pointer like fn(usize, ...).
TypeArray
A fixed size array type: [T; n].
TypeBareFn
A bare function type: fn(usize) -> bool.
TypeGroup
A type contained within invisible delimiters.
TypeImplTrait
An impl Bound1 + Bound2 + Bound3 type where Bound is a trait or a lifetime.
TypeInfer
Indication that a type should be inferred by the compiler: _.
TypeMacro
A macro in the type position.
TypeNever
The never type: !.
TypeParen
A parenthesized type equivalent to the inner type.
TypePath
A path like std::slice::Iter, optionally qualified with a self-type as in <Vec<T> as SomeTrait>::Associated.
TypePtr
A raw pointer type: *const T or *mut T.
TypeReference
A reference type: &'a T or &'a mut T.
TypeSlice
A dynamically sized slice type: [T].
TypeTraitObject
A trait object type dyn Bound1 + Bound2 + Bound3 where Bound is a trait or a lifetime.
TypeTuple
A tuple type: (A, B, C, String).

Enums§

ReturnType
Return type of a function signature.
Type
The possible types that a Rust value could have.