Struct sourceannot::AnnotStyle
source · pub struct AnnotStyle<M> {
pub caret: char,
pub text_normal_meta: M,
pub text_alt_meta: M,
pub line_meta: M,
}Expand description
The style of a particular annotation.
Fields§
§caret: charCaret character used to point to the annotated text.
text_normal_meta: MMetadata that accompanies annotated normal text.
text_alt_meta: MMetadata that accompanies annotated alternative text.
line_meta: MMetadata that accompanies annotation drawings.
Trait Implementations§
source§impl<M: Clone> Clone for AnnotStyle<M>
impl<M: Clone> Clone for AnnotStyle<M>
source§fn clone(&self) -> AnnotStyle<M>
fn clone(&self) -> AnnotStyle<M>
Returns a copy 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 AnnotStyle<M>
impl<M: Debug> Debug for AnnotStyle<M>
source§impl<M: PartialEq> PartialEq for AnnotStyle<M>
impl<M: PartialEq> PartialEq for AnnotStyle<M>
source§fn eq(&self, other: &AnnotStyle<M>) -> bool
fn eq(&self, other: &AnnotStyle<M>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<M: Copy> Copy for AnnotStyle<M>
impl<M: Eq> Eq for AnnotStyle<M>
impl<M> StructuralPartialEq for AnnotStyle<M>
Auto Trait Implementations§
impl<M> Freeze for AnnotStyle<M>where
M: Freeze,
impl<M> RefUnwindSafe for AnnotStyle<M>where
M: RefUnwindSafe,
impl<M> Send for AnnotStyle<M>where
M: Send,
impl<M> Sync for AnnotStyle<M>where
M: Sync,
impl<M> Unpin for AnnotStyle<M>where
M: Unpin,
impl<M> UnwindSafe for AnnotStyle<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