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 for MultilineAnnotation
impl PartialEq 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 for MultilineAnnotation
impl PartialOrd 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 StructuralPartialEq for MultilineAnnotation
Auto Trait Implementations§
impl DynSend for MultilineAnnotation
impl DynSync for MultilineAnnotation
impl Freeze for MultilineAnnotation
impl RefUnwindSafe for MultilineAnnotation
impl Send for MultilineAnnotation
impl Sync for MultilineAnnotation
impl Unpin for MultilineAnnotation
impl UnwindSafe for MultilineAnnotation
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Filterable for T
impl<T> Filterable for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
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