pub enum DisplayLine<'a> {
Source {
lineno: Option<usize>,
inline_marks: Vec<DisplayMark>,
line: DisplaySourceLine<'a>,
},
Fold {
inline_marks: Vec<DisplayMark>,
},
Raw(DisplayRawLine<'a>),
}
Expand description
A single line used in DisplayList
.
Variants§
Source
A line with lineno
portion of the slice.
Fold
Fields
§
inline_marks: Vec<DisplayMark>
A line indicating a folded part of the slice.
Raw(DisplayRawLine<'a>)
A line which is displayed outside of slices.
Trait Implementations§
source§impl<'a> Debug for DisplayLine<'a>
impl<'a> Debug for DisplayLine<'a>
source§impl<'a> PartialEq for DisplayLine<'a>
impl<'a> PartialEq for DisplayLine<'a>
source§fn eq(&self, other: &DisplayLine<'a>) -> bool
fn eq(&self, other: &DisplayLine<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for DisplayLine<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DisplayLine<'a>
impl<'a> Send for DisplayLine<'a>
impl<'a> Sync for DisplayLine<'a>
impl<'a> Unpin for DisplayLine<'a>
impl<'a> UnwindSafe for DisplayLine<'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