Struct syn_inline_mod::InlineError
source · pub struct InlineError { /* private fields */ }
Expand description
An error that happened while attempting to inline a module.
Implementations§
source§impl InlineError
impl InlineError
sourcepub fn src_path(&self) -> &Path
pub fn src_path(&self) -> &Path
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.
sourcepub fn module_name(&self) -> &str
pub fn module_name(&self) -> &str
Returns the name of the module that was attempted to be inlined.
sourcepub fn src_span(&self) -> Span
pub fn src_span(&self) -> Span
Returns the Span
(including line and column information) in the source path that caused
self.path()
to be included.
Trait Implementations§
source§impl Debug for InlineError
impl Debug for InlineError
Auto Trait Implementations§
impl !RefUnwindSafe for InlineError
impl !Send for InlineError
impl !Sync for InlineError
impl Unpin for InlineError
impl !UnwindSafe for InlineError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more