pub enum AnnotationType {
Singleline,
Multiline(MultilineAnnotation),
MultilineStart(usize),
MultilineEnd(usize),
MultilineLine(usize),
}
Variants§
Singleline
Annotation under a single line of code
Multiline(MultilineAnnotation)
Annotation enclosing the first and last character of a multiline span
MultilineStart(usize)
Annotation marking the first character of a fully shown multiline span
MultilineEnd(usize)
Annotation marking the last character of a fully shown multiline span
MultilineLine(usize)
Line at the left enclosing the lines of a fully shown multiline span
Trait Implementations§
Source§impl Clone for AnnotationType
impl Clone for AnnotationType
Source§fn clone(&self) -> AnnotationType
fn clone(&self) -> AnnotationType
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 Debug for AnnotationType
impl Debug for AnnotationType
Source§impl Ord for AnnotationType
impl Ord for AnnotationType
Source§fn cmp(&self, other: &AnnotationType) -> Ordering
fn cmp(&self, other: &AnnotationType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AnnotationType
impl PartialEq for AnnotationType
Source§impl PartialOrd for AnnotationType
impl PartialOrd for AnnotationType
impl Eq for AnnotationType
impl StructuralPartialEq for AnnotationType
Auto Trait Implementations§
impl Freeze for AnnotationType
impl RefUnwindSafe for AnnotationType
impl Send for AnnotationType
impl Sync for AnnotationType
impl Unpin for AnnotationType
impl UnwindSafe for AnnotationType
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