[][src]Struct kg_diag::io::Quote

pub struct Quote { /* fields omitted */ }

Methods

impl Quote[src]

pub fn new<'a>(
    path: Option<&Path>,
    data: &[u8],
    from: Position,
    to: Position,
    lines_before: u32,
    lines_after: u32,
    message: Cow<'a, str>
) -> Quote
[src]

pub fn from(&self) -> Position[src]

pub fn to(&self) -> Position[src]

pub fn span(&self) -> Span[src]

pub fn message(&self) -> &str[src]

pub fn offset(&self) -> usize[src]

pub fn line(&self) -> u32[src]

pub fn source(&self) -> &str[src]

Trait Implementations

impl Clone for Quote[src]

impl Display for Quote[src]

impl Debug for Quote[src]

Auto Trait Implementations

impl Unpin for Quote

impl Sync for Quote

impl Send for Quote

impl UnwindSafe for Quote

impl RefUnwindSafe for Quote

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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.

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

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

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