pub enum TypeKind {
Named(String),
Array(Box<TypeAnn>),
Generic(String, Vec<TypeAnn>),
}Variants§
Named(String)
A plain named type: int, float, string, bool.
Array(Box<TypeAnn>)
An array type: [int], [[string]].
Generic(String, Vec<TypeAnn>)
A type with parameters: Option<int>, Result<int, string>. So far
only the built-in Option and Result take parameters — user-defined
generics are a later milestone.
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