pub enum DisplaySourceLine<'a> {
Content {
text: &'a str,
range: (usize, usize),
},
Annotation {
annotation: Annotation<'a>,
range: (usize, usize),
annotation_type: DisplayAnnotationType,
annotation_part: DisplayAnnotationPart,
},
Empty,
}
Expand description
A source line.
Variants§
Content
A line with the content of the Slice.
Annotation
Fields
§
annotation: Annotation<'a>
§
annotation_type: DisplayAnnotationType
§
annotation_part: DisplayAnnotationPart
An annotation line which is displayed in context of the slice.
Empty
An empty source line.
Trait Implementations§
source§impl<'a> Debug for DisplaySourceLine<'a>
impl<'a> Debug for DisplaySourceLine<'a>
source§impl<'a> PartialEq for DisplaySourceLine<'a>
impl<'a> PartialEq for DisplaySourceLine<'a>
source§fn eq(&self, other: &DisplaySourceLine<'a>) -> bool
fn eq(&self, other: &DisplaySourceLine<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for DisplaySourceLine<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DisplaySourceLine<'a>
impl<'a> Send for DisplaySourceLine<'a>
impl<'a> Sync for DisplaySourceLine<'a>
impl<'a> Unpin for DisplaySourceLine<'a>
impl<'a> UnwindSafe for DisplaySourceLine<'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