pub struct Diagnostic<'r> { /* private fields */ }
Expand description
A diagnostic
Implementations§
Source§impl<'r> Diagnostic<'r>
impl<'r> Diagnostic<'r>
Sourcepub fn new(
kind: DiagnosticKind,
data: DiagnosticData,
file: &'r Path,
script: &'r str,
) -> Self
pub fn new( kind: DiagnosticKind, data: DiagnosticData, file: &'r Path, script: &'r str, ) -> Self
Create a new diagnostic based on diagnostic data, a source and a piece of code.
Trait Implementations§
Auto Trait Implementations§
impl<'r> Freeze for Diagnostic<'r>
impl<'r> RefUnwindSafe for Diagnostic<'r>
impl<'r> Send for Diagnostic<'r>
impl<'r> Sync for Diagnostic<'r>
impl<'r> Unpin for Diagnostic<'r>
impl<'r> UnwindSafe for Diagnostic<'r>
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> Convert for T
impl<T> Convert for T
Source§fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
Convert
self
into a specific type. Read moreSource§fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
Check if
self
can be converted into a specific type. Read more