Struct annotate_snippets::display_list::DisplayList
source · pub struct DisplayList<'a> {
pub body: Vec<DisplayLine<'a>>,
pub stylesheet: Box<dyn Stylesheet>,
pub anonymized_line_numbers: bool,
pub margin: Option<Margin>,
}
Expand description
List of lines to be displayed.
Fields§
§body: Vec<DisplayLine<'a>>
§stylesheet: Box<dyn Stylesheet>
§anonymized_line_numbers: bool
§margin: Option<Margin>
Trait Implementations§
source§impl<'a> Debug for DisplayList<'a>
impl<'a> Debug for DisplayList<'a>
source§impl<'a> Display for DisplayList<'a>
impl<'a> Display for DisplayList<'a>
source§impl<'a> From<Snippet<'a>> for DisplayList<'a>
impl<'a> From<Snippet<'a>> for DisplayList<'a>
source§fn from(_: Snippet<'a>) -> DisplayList<'a>
fn from(_: Snippet<'a>) -> DisplayList<'a>
Converts to this type from the input type.
source§impl<'a> From<Vec<DisplayLine<'a>>> for DisplayList<'a>
impl<'a> From<Vec<DisplayLine<'a>>> for DisplayList<'a>
source§fn from(body: Vec<DisplayLine<'a>>) -> DisplayList<'a>
fn from(body: Vec<DisplayLine<'a>>) -> DisplayList<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DisplayList<'a>
impl<'a> !Send for DisplayList<'a>
impl<'a> !Sync for DisplayList<'a>
impl<'a> Unpin for DisplayList<'a>
impl<'a> !UnwindSafe for DisplayList<'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