pub enum DisplayRawLine<'a> {
Origin {
path: &'a str,
pos: Option<(usize, usize)>,
header_type: DisplayHeaderType,
},
Annotation {
annotation: Annotation<'a>,
source_aligned: bool,
continuation: bool,
},
}
Expand description
Raw line - a line which does not have the lineno
part and is not considered
a part of the snippet.
Variants§
Origin
A line which provides information about the location of the given slice in the project structure.
Annotation
Fields
§
annotation: Annotation<'a>
An annotation line which is not part of any snippet.
Trait Implementations§
source§impl<'a> Debug for DisplayRawLine<'a>
impl<'a> Debug for DisplayRawLine<'a>
source§impl<'a> PartialEq for DisplayRawLine<'a>
impl<'a> PartialEq for DisplayRawLine<'a>
source§fn eq(&self, other: &DisplayRawLine<'a>) -> bool
fn eq(&self, other: &DisplayRawLine<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for DisplayRawLine<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DisplayRawLine<'a>
impl<'a> Send for DisplayRawLine<'a>
impl<'a> Sync for DisplayRawLine<'a>
impl<'a> Unpin for DisplayRawLine<'a>
impl<'a> UnwindSafe for DisplayRawLine<'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