Struct marker_api::span::FilePos
source · #[repr(C)]pub struct FilePos<'ast> { /* private fields */ }Expand description
A location inside a file.
SpanPos instances belonging to files can be mapped to FilePos with
the FileInfo from the SpanSource of the Span they belong to. See:
FileInfo::to_file_pos.
Implementations§
Trait Implementations§
impl<'ast> Copy for FilePos<'ast>
Auto Trait Implementations§
impl<'ast> RefUnwindSafe for FilePos<'ast>
impl<'ast> Send for FilePos<'ast>
impl<'ast> Sync for FilePos<'ast>
impl<'ast> Unpin for FilePos<'ast>
impl<'ast> UnwindSafe for FilePos<'ast>
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