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 Annotationwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Annotation>: Freeze,
*const Annotation is !null: Freeze,
impl Move for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnsafeUnpin for Annotationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Annotation>: UnsafeUnpin,
*const Annotation is !null: UnsafeUnpin,
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