Struct rustc_errors::snippet::Line [−][src]
pub struct Line {
pub line_index: usize,
pub annotations: Vec<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?
Fields
line_index: 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?
annotations: Vec<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 Line[src]
impl Clone for Linefn clone(&self) -> Line[src]
fn clone(&self) -> LineReturns 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 Line[src]
impl Debug for Linefn 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 Line[src]
impl PartialOrd for Linefn partial_cmp(&self, other: &Line) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Line) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Line) -> bool[src]
fn lt(&self, other: &Line) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Line) -> bool[src]
fn le(&self, other: &Line) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Line) -> bool[src]
fn gt(&self, other: &Line) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Line) -> bool[src]
fn ge(&self, other: &Line) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Line[src]
impl Ord for Linefn cmp(&self, other: &Line) -> Ordering[src]
fn cmp(&self, other: &Line) -> 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 Line[src]
impl PartialEq for Linefn eq(&self, other: &Line) -> bool[src]
fn eq(&self, other: &Line) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Line) -> bool[src]
fn ne(&self, other: &Line) -> boolThis method tests for !=.
impl Eq for Line[src]
impl Eq for Linefn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)