pub struct FileSpan { /* private fields */ }Expand description
Represents a span of code in a file.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileSpan
impl<'de> Deserialize<'de> for FileSpan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Span for FileSpan
Available on crate feature ariadne only.
impl Span for FileSpan
Available on crate feature
ariadne only.Source§type SourceId = usize
type SourceId = usize
The identifier used to uniquely refer to a source. In most cases, this is the fully-qualified path of the file.
Source§fn source(&self) -> &Self::SourceId
fn source(&self) -> &Self::SourceId
Get the identifier of the source that this span refers to.
impl Copy for FileSpan
Auto Trait Implementations§
impl Freeze for FileSpan
impl RefUnwindSafe for FileSpan
impl Send for FileSpan
impl Sync for FileSpan
impl Unpin for FileSpan
impl UnwindSafe for FileSpan
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