Struct i_slint_compiler::diagnostics::Span
source · pub struct Span {
pub offset: usize,
}
Expand description
Span represent an error location within a file.
Currently, it is just an offset in byte within the file.
When the proc_macro_span
feature is enabled, it may also hold a proc_macro span.
Fields§
§offset: usize
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnwindSafe for Span
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