pub struct Diagnostic { /* private fields */ }
Expand description
In Memory representation for the Diagnostic element
Implementations§
Source§impl Diagnostic
impl Diagnostic
Sourcepub fn new(label: &str, message: &str) -> Self
pub fn new(label: &str, message: &str) -> Self
Create new instance of Diagnostic with required label and message
Sourcepub fn with_location(self, location: Location) -> Self
pub fn with_location(self, location: Location) -> Self
Set location start and end from Location type
Sourcepub fn with_location_span(self, start: usize, end: usize) -> Self
pub fn with_location_span(self, start: usize, end: usize) -> Self
Set location start and end
Auto Trait Implementations§
impl Freeze for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnwindSafe for Diagnostic
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