pub struct ParseAnnotation {
pub kind: AnnotationKind,
pub span: Span,
pub message: String,
}Expand description
An annotation attached to a parse result.
Fields§
§kind: AnnotationKindAnnotation kind.
span: SpanSource span.
message: StringMessage.
Implementations§
Trait Implementations§
Source§impl Clone for ParseAnnotation
impl Clone for ParseAnnotation
Source§fn clone(&self) -> ParseAnnotation
fn clone(&self) -> ParseAnnotation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseAnnotation
impl Debug for ParseAnnotation
Auto Trait Implementations§
impl Freeze for ParseAnnotation
impl RefUnwindSafe for ParseAnnotation
impl Send for ParseAnnotation
impl Sync for ParseAnnotation
impl Unpin for ParseAnnotation
impl UnsafeUnpin for ParseAnnotation
impl UnwindSafe for ParseAnnotation
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