pub struct MainStyle<M> {
pub margin: Option<MarginStyle<M>>,
pub horizontal_char: char,
pub vertical_char: char,
pub top_vertical_char: char,
pub top_corner_char: char,
pub bottom_corner_char: char,
pub spaces_meta: M,
pub text_normal_meta: M,
pub text_alt_meta: M,
}
Expand description
The general style of an annotated snippet.
Fields§
§margin: Option<MarginStyle<M>>
The style of the margin.
If None
, there will not be any margin at all.
horizontal_char: char
Character used to draw horizontal lines of multi-line annotations.
vertical_char: char
Character used to draw vertical lines of multi-line annotations.
top_vertical_char: char
Character used to draw the top corner of multi-line annotations that start at the first column.
top_corner_char: char
Character used to draw the top corner of multi-line annotations.
bottom_corner_char: char
Character used to draw the bottom corner of multi-line annotations.
spaces_meta: M
Metadata that accompanies spaces.
text_normal_meta: M
Metadata that accompanies unannotated normal text.
text_alt_meta: M
Metadata that accompanies unannotated alternative text.
Trait Implementations§
impl<M: Copy> Copy for MainStyle<M>
impl<M: Eq> Eq for MainStyle<M>
impl<M> StructuralPartialEq for MainStyle<M>
Auto Trait Implementations§
impl<M> Freeze for MainStyle<M>where
M: Freeze,
impl<M> RefUnwindSafe for MainStyle<M>where
M: RefUnwindSafe,
impl<M> Send for MainStyle<M>where
M: Send,
impl<M> Sync for MainStyle<M>where
M: Sync,
impl<M> Unpin for MainStyle<M>where
M: Unpin,
impl<M> UnwindSafe for MainStyle<M>where
M: UnwindSafe,
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