Struct rustc_errors::snippet::MultilineAnnotation [−][src]
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>,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields
depth: usize
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
line_start: usize
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
line_end: usize
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
start_col: usize
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
end_col: usize
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
is_primary: bool
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
label: Option<String>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Methods
impl MultilineAnnotation[src]
impl MultilineAnnotationpub fn increase_depth(&mut self)[src]
pub fn increase_depth(&mut self)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn as_start(&self) -> Annotation[src]
pub fn as_start(&self) -> Annotation🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn as_end(&self) -> Annotation[src]
pub fn as_end(&self) -> Annotation🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn as_line(&self) -> Annotation[src]
pub fn as_line(&self) -> Annotation🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl Clone for MultilineAnnotation[src]
impl Clone for MultilineAnnotationfn clone(&self) -> MultilineAnnotation[src]
fn clone(&self) -> MultilineAnnotationReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for MultilineAnnotation[src]
impl Debug for MultilineAnnotationfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialOrd for MultilineAnnotation[src]
impl PartialOrd for MultilineAnnotationfn partial_cmp(&self, other: &MultilineAnnotation) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &MultilineAnnotation) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &MultilineAnnotation) -> bool[src]
fn lt(&self, other: &MultilineAnnotation) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &MultilineAnnotation) -> bool[src]
fn le(&self, other: &MultilineAnnotation) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &MultilineAnnotation) -> bool[src]
fn gt(&self, other: &MultilineAnnotation) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &MultilineAnnotation) -> bool[src]
fn ge(&self, other: &MultilineAnnotation) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for MultilineAnnotation[src]
impl Ord for MultilineAnnotationfn cmp(&self, other: &MultilineAnnotation) -> Ordering[src]
fn cmp(&self, other: &MultilineAnnotation) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialEq for MultilineAnnotation[src]
impl PartialEq for MultilineAnnotationfn eq(&self, other: &MultilineAnnotation) -> bool[src]
fn eq(&self, other: &MultilineAnnotation) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &MultilineAnnotation) -> bool[src]
fn ne(&self, other: &MultilineAnnotation) -> boolThis method tests for !=.
impl Eq for MultilineAnnotation[src]
impl Eq for MultilineAnnotationfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)Auto Trait Implementations
impl Send for MultilineAnnotation
impl Send for MultilineAnnotationimpl Sync for MultilineAnnotation
impl Sync for MultilineAnnotation