[][src]Struct sbnf::sbnf::TextLocation

pub struct TextLocation {
    pub line: u32,
    pub column: u32,
}

Fields

line: u32column: u32

Implementations

impl TextLocation[src]

pub fn new(line: u32, column: u32) -> TextLocation[src]

pub fn from_tuple((line, column): (u32, u32)) -> TextLocation[src]

pub fn extract_line<'a>(&self, source: &'a str) -> &'a str[src]

pub fn fmt_marker(&self) -> String[src]

pub fn fmt_source(&self, source: &str) -> String[src]

Trait Implementations

impl Clone for TextLocation[src]

impl Debug for TextLocation[src]

impl Display for TextLocation[src]

impl Eq for TextLocation[src]

impl Hash for TextLocation[src]

impl PartialEq<TextLocation> for TextLocation[src]

impl StructuralEq for TextLocation[src]

impl StructuralPartialEq for TextLocation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.