pub enum Annotation {
Constructor {
name: EcoString,
params: Vec<Self>,
writable: bool,
mut_span: Option<Span>,
span: Span,
},
Function {
params: Vec<Self>,
return_type: Box<Self>,
span: Span,
},
Tuple {
elements: Vec<Self>,
span: Span,
},
Unknown,
Opaque {
span: Span,
},
Constant {
value: u64,
text: Option<String>,
span: Span,
},
}Variants§
Constructor
Function
Tuple
Unknown
Opaque
Constant
An integer literal in type-argument position, e.g. the 3 in
Array<int, 3>. Valid only as an Array size, rejected elsewhere.
Implementations§
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§impl Debug for Annotation
impl Debug for Annotation
Source§impl PartialEq for Annotation
impl PartialEq for Annotation
impl StructuralPartialEq for Annotation
Auto Trait Implementations§
impl Forget for Annotation
impl Freeze for Annotation
impl Move for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnsafeUnpin for Annotation
impl UnwindSafe for Annotation
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