Struct annotate_snippets::display_list::Annotation
source · pub struct Annotation<'a> {
pub annotation_type: DisplayAnnotationType,
pub id: Option<&'a str>,
pub label: Vec<DisplayTextFragment<'a>>,
}
Expand description
Inline annotation which can be used in either Raw or Source line.
Fields§
§annotation_type: DisplayAnnotationType
§id: Option<&'a str>
§label: Vec<DisplayTextFragment<'a>>
Trait Implementations§
source§impl<'a> Debug for Annotation<'a>
impl<'a> Debug for Annotation<'a>
source§impl<'a> PartialEq for Annotation<'a>
impl<'a> PartialEq for Annotation<'a>
source§fn eq(&self, other: &Annotation<'a>) -> bool
fn eq(&self, other: &Annotation<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for Annotation<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Annotation<'a>
impl<'a> Send for Annotation<'a>
impl<'a> Sync for Annotation<'a>
impl<'a> Unpin for Annotation<'a>
impl<'a> UnwindSafe for Annotation<'a>
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