pub struct AnnotationView {
pub name: String,
pub value: Option<Value>,
pub text: Option<String>,
pub span: Span,
}Expand description
An annotation as written.
Fields§
§name: StringThe name after @.
value: Option<Value>The value, or None when it isn’t a literal. A bare @name is true.
text: Option<String>The value as written; None for a bare @name.
span: SpanWhere the annotation is.
Trait Implementations§
Source§impl Clone for AnnotationView
impl Clone for AnnotationView
Source§impl Debug for AnnotationView
impl Debug for AnnotationView
Source§impl PartialEq for AnnotationView
impl PartialEq for AnnotationView
impl StructuralPartialEq for AnnotationView
Auto Trait Implementations§
impl Freeze for AnnotationView
impl RefUnwindSafe for AnnotationView
impl Send for AnnotationView
impl Sync for AnnotationView
impl Unpin for AnnotationView
impl UnsafeUnpin for AnnotationView
impl UnwindSafe for AnnotationView
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