Enum rustc_errors::snippet::AnnotationType
source · pub enum AnnotationType {
Singleline,
MultilineStart(usize),
MultilineEnd(usize),
MultilineLine(usize),
}
Variants§
Singleline
Annotation under a single line of code
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<AnnotationType> for AnnotationType
impl PartialEq<AnnotationType> for AnnotationType
source§fn eq(&self, other: &AnnotationType) -> bool
fn eq(&self, other: &AnnotationType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AnnotationType> for AnnotationType
impl PartialOrd<AnnotationType> for AnnotationType
source§fn partial_cmp(&self, other: &AnnotationType) -> Option<Ordering>
fn partial_cmp(&self, other: &AnnotationType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for AnnotationType
impl StructuralEq for AnnotationType
impl StructuralPartialEq for AnnotationType
Auto Trait Implementations§
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
Singleline
: 0 bytesMultilineStart
: 8 bytesMultilineEnd
: 8 bytesMultilineLine
: 8 bytes