pub struct MarginStyle<M> {
pub line_char: char,
pub dot_char: char,
pub meta: M,
}Expand description
The style of the margin of an annotated snippet.
Fields§
§line_char: charCharacter used to draw the vertical separator of the margin.
dot_char: charCharacter used to draw discontinuities in the vertical separator of the margin durin.
meta: MMetadata that accompanies margin characters.
Trait Implementations§
Source§impl<M: Clone> Clone for MarginStyle<M>
impl<M: Clone> Clone for MarginStyle<M>
Source§fn clone(&self) -> MarginStyle<M>
fn clone(&self) -> MarginStyle<M>
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<M: Debug> Debug for MarginStyle<M>
impl<M: Debug> Debug for MarginStyle<M>
Source§impl<M: PartialEq> PartialEq for MarginStyle<M>
impl<M: PartialEq> PartialEq for MarginStyle<M>
impl<M: Copy> Copy for MarginStyle<M>
impl<M: Eq> Eq for MarginStyle<M>
impl<M> StructuralPartialEq for MarginStyle<M>
Auto Trait Implementations§
impl<M> Freeze for MarginStyle<M>where
M: Freeze,
impl<M> RefUnwindSafe for MarginStyle<M>where
M: RefUnwindSafe,
impl<M> Send for MarginStyle<M>where
M: Send,
impl<M> Sync for MarginStyle<M>where
M: Sync,
impl<M> Unpin for MarginStyle<M>where
M: Unpin,
impl<M> UnwindSafe for MarginStyle<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