pub struct Issue {
pub level: Level,
pub message: String,
pub span: Range<usize>,
pub fragments: Vec<(String, Range<usize>)>,
}
Expand description
An issue encountered during parsing, or later stages
Fields§
§level: Level
The level of the issue
message: String
The primary message of the issue
span: Range<usize>
The span to attach the primary message to
fragments: Vec<(String, Range<usize>)>
List of secondary messages and spans
Implementations§
Trait Implementations§
impl Eq for Issue
impl StructuralPartialEq for Issue
Auto Trait Implementations§
impl Freeze for Issue
impl RefUnwindSafe for Issue
impl Send for Issue
impl Sync for Issue
impl Unpin for Issue
impl UnwindSafe for Issue
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)