#[repr(u8)]pub enum SourceContextLine {
Line(ContextCodeLine),
Separator(ContextSeparator),
}Expand description
A single entry in a syntax-highlighted source context excerpt.
Variants§
Line(ContextCodeLine)
A real source line with its original line number and highlighted HTML.
Separator(ContextSeparator)
A ⋯ separator representing one or more elided lines.
Trait Implementations§
Source§impl Clone for SourceContextLine
impl Clone for SourceContextLine
Source§fn clone(&self) -> SourceContextLine
fn clone(&self) -> SourceContextLine
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 SourceContextLine
impl Debug for SourceContextLine
Auto Trait Implementations§
impl Freeze for SourceContextLine
impl RefUnwindSafe for SourceContextLine
impl Send for SourceContextLine
impl Sync for SourceContextLine
impl Unpin for SourceContextLine
impl UnsafeUnpin for SourceContextLine
impl UnwindSafe for SourceContextLine
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