Struct rustc_errors::snippet::MultilineAnnotation
source · [−]pub struct MultilineAnnotation {
pub depth: usize,
pub line_start: usize,
pub line_end: usize,
pub start_col: usize,
pub end_col: usize,
pub is_primary: bool,
pub label: Option<String>,
pub overlaps_exactly: bool,
}Fields
depth: usizeline_start: usizeline_end: usizestart_col: usizeend_col: usizeis_primary: boollabel: Option<String>overlaps_exactly: boolImplementations
sourceimpl MultilineAnnotation
impl MultilineAnnotation
pub fn increase_depth(&mut self)
sourcepub fn same_span(&self, other: &MultilineAnnotation) -> bool
pub fn same_span(&self, other: &MultilineAnnotation) -> bool
Compare two MultilineAnnotations considering only the Span they cover.
pub fn as_start(&self) -> Annotation
pub fn as_end(&self) -> Annotation
pub fn as_line(&self) -> Annotation
Trait Implementations
sourceimpl Clone for MultilineAnnotation
impl Clone for MultilineAnnotation
sourcefn clone(&self) -> MultilineAnnotation
fn clone(&self) -> MultilineAnnotation
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 MultilineAnnotation
impl Debug for MultilineAnnotation
sourceimpl Ord for MultilineAnnotation
impl Ord for MultilineAnnotation
sourceimpl PartialEq<MultilineAnnotation> for MultilineAnnotation
impl PartialEq<MultilineAnnotation> for MultilineAnnotation
sourcefn eq(&self, other: &MultilineAnnotation) -> bool
fn eq(&self, other: &MultilineAnnotation) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MultilineAnnotation) -> bool
fn ne(&self, other: &MultilineAnnotation) -> bool
This method tests for !=.
sourceimpl PartialOrd<MultilineAnnotation> for MultilineAnnotation
impl PartialOrd<MultilineAnnotation> for MultilineAnnotation
sourcefn partial_cmp(&self, other: &MultilineAnnotation) -> Option<Ordering>
fn partial_cmp(&self, other: &MultilineAnnotation) -> 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 MultilineAnnotation
impl StructuralEq for MultilineAnnotation
impl StructuralPartialEq for MultilineAnnotation
Auto Trait Implementations
impl RefUnwindSafe for MultilineAnnotation
impl Send for MultilineAnnotation
impl Sync for MultilineAnnotation
impl Unpin for MultilineAnnotation
impl UnwindSafe for MultilineAnnotation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. 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: 72 bytes