[][src]Struct syn_inline_mod::InlineError

pub struct InlineError { /* fields omitted */ }

An error that happened while attempting to inline a module.

Implementations

impl InlineError[src]

pub fn src_path(&self) -> &Path[src]

Returns the source path where the error originated.

The file at this path parsed correctly, but it caused the file at self.path() to be read.

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

Returns the name of the module that was attempted to be inlined.

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

Returns the Span (including line and column information) in the source path that caused self.path() to be included.

pub fn path(&self) -> &Path[src]

Returns the path where the error happened.

Reading and parsing this file failed for the reason listed in self.kind().

pub fn kind(&self) -> &Error[src]

Returns the reason for this error happening.

Trait Implementations

impl Debug for InlineError[src]

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

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

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.