[][src]Struct bracket::error::source::ErrorInfo

pub struct ErrorInfo<'source> { /* fields omitted */ }

Encapsulates the information needed to generate a source code snippet.

Implementations

impl<'source> ErrorInfo<'source>[src]

pub fn new(source: &'source str, file_name: &str, source_pos: SourcePos) -> Self[src]

pub fn new_notes(
    source: &'source str,
    file_name: &str,
    source_pos: SourcePos,
    notes: Vec<String>
) -> Self
[src]

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

👎 Deprecated

pub fn notes(&self) -> &Vec<String>[src]

👎 Deprecated

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

👎 Deprecated

pub fn position(&self) -> &SourcePos[src]

👎 Deprecated

Trait Implementations

impl<'_> Debug for ErrorInfo<'_>[src]

impl<'source> Eq for ErrorInfo<'source>[src]

impl<'_> Into<String> for ErrorInfo<'_>[src]

impl<'source> PartialEq<ErrorInfo<'source>> for ErrorInfo<'source>[src]

impl<'source> StructuralEq for ErrorInfo<'source>[src]

impl<'source> StructuralPartialEq for ErrorInfo<'source>[src]

Auto Trait Implementations

impl<'source> RefUnwindSafe for ErrorInfo<'source>

impl<'source> Send for ErrorInfo<'source>

impl<'source> Sync for ErrorInfo<'source>

impl<'source> Unpin for ErrorInfo<'source>

impl<'source> UnwindSafe for ErrorInfo<'source>

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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.