A type literal in the syntax tree
This enum carries no semantic information and might refer to types that do not exist.
A nullable named type, e.g.
A nullable list type, e.g.
The list itself is what's nullable, the containing type might be non-null.
A non-null named type, e.g.
A non-null list type, e.g.
The list itself is what's non-null, the containing type might be null.
Get the name of a named type.
Only applies to named types; lists will return
pub fn innermost_name(&self) -> &str[src]
Get the innermost name by unpacking lists
All type literals contain exactly one named type.
pub fn is_non_null(&self) -> bool[src]
Determines if a type only can represent non-null values.
impl<'a> StructuralEq for Type<'a>[src]
impl<'a> StructuralPartialEq for Type<'a>[src]
impl<'a> RefUnwindSafe for Type<'a>
impl<'a> UnwindSafe for Type<'a>
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.