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
sourceimpl Clone for AnnotationType
impl Clone for AnnotationType
sourcefn clone(&self) -> AnnotationType
fn clone(&self) -> AnnotationType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AnnotationType
impl Debug for AnnotationType
sourceimpl Ord for AnnotationType
impl Ord for AnnotationType
sourcefn cmp(&self, other: &AnnotationType) -> Ordering
fn cmp(&self, other: &AnnotationType) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<AnnotationType> for AnnotationType
impl PartialEq<AnnotationType> for AnnotationType
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &AnnotationType) -> bool
fn ne(&self, other: &AnnotationType) -> bool
This method tests for !=.
sourceimpl PartialOrd<AnnotationType> for AnnotationType
impl PartialOrd<AnnotationType> for AnnotationType
sourcefn partial_cmp(&self, other: &AnnotationType) -> Option<Ordering>
fn partial_cmp(&self, other: &AnnotationType) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn 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