Struct rustc_errors::snippet::MultilineAnnotation
source · pub struct MultilineAnnotation {
pub depth: usize,
pub line_start: usize,
pub line_end: usize,
pub start_col: AnnotationColumn,
pub end_col: AnnotationColumn,
pub is_primary: bool,
pub label: Option<String>,
pub overlaps_exactly: bool,
}
Fields§
§depth: usize
§line_start: usize
§line_end: usize
§start_col: AnnotationColumn
§end_col: AnnotationColumn
§is_primary: bool
§label: Option<String>
§overlaps_exactly: bool
Implementations§
source§impl 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 MultilineAnnotation
s 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§
source§impl Clone for MultilineAnnotation
impl Clone for MultilineAnnotation
source§fn clone(&self) -> MultilineAnnotation
fn clone(&self) -> MultilineAnnotation
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 MultilineAnnotation
impl Debug for MultilineAnnotation
source§impl Ord for MultilineAnnotation
impl Ord for MultilineAnnotation
source§fn cmp(&self, other: &MultilineAnnotation) -> Ordering
fn cmp(&self, other: &MultilineAnnotation) -> 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<MultilineAnnotation> for MultilineAnnotation
impl PartialEq<MultilineAnnotation> for MultilineAnnotation
source§fn 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 ==
.source§impl PartialOrd<MultilineAnnotation> for MultilineAnnotation
impl PartialOrd<MultilineAnnotation> for MultilineAnnotation
source§fn partial_cmp(&self, other: &MultilineAnnotation) -> Option<Ordering>
fn partial_cmp(&self, other: &MultilineAnnotation) -> 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 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§
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: 88 bytes