pub struct TypeAnn {
pub kind: TypeKind,
pub span: Span,
}Expand description
A written type annotation, like the int in var count: int or the
[int] in let primes: [int]. Types nest, so this is recursive.
Fields§
§kind: TypeKind§span: SpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for TypeAnn
impl RefUnwindSafe for TypeAnn
impl Send for TypeAnn
impl Sync for TypeAnn
impl Unpin for TypeAnn
impl UnsafeUnpin for TypeAnn
impl UnwindSafe for TypeAnn
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