Enum amplify_syn::TypeClass [−][src]
pub enum TypeClass {
Show 15 variants
Array,
BareFn,
Group,
ImplTrait,
Infer,
Macro,
Never,
Paren,
Path,
Ptr,
Reference,
Slice,
TraitObject,
Tuple,
Verbatim,
}
Expand description
Constrains for the possible types that a Rust value could have.
Variants
A fixed size array type: [T; n]
.
A bare function type: fn(usize) -> bool
.
A type contained within invisible delimiters.
An impl Bound1 + Bound2 + Bound3
type where Bound
is a trait or
a lifetime.
Indication that a type should be inferred by the compiler: _
.
A macro in the type position.
The never type: !
.
A parenthesized type equivalent to the inner type.
A path like std::slice::Iter
, optionally qualified with a
self-type as in <Vec<T> as SomeTrait>::Associated
.
A raw pointer type: *const T
or *mut T
.
A reference type: &'a T
or &'a mut T
.
A dynamically sized slice type: [T]
.
A trait object type Bound1 + Bound2 + Bound3
where Bound
is a
trait or a lifetime.
A tuple type: (A, B, C, String)
.
Tokens in type position not interpreted by Syn.
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for TypeClass
impl UnwindSafe for TypeClass
Blanket Implementations
Mutably borrows from an owned value. Read more