#[repr(C)]pub struct MlirDiagnostic {
pub ptr: *mut c_void,
}Expand description
An opaque reference to a diagnostic, always owned by the diagnostics engine (context). Must not be stored outside of the diagnostic handler.
Fields§
§ptr: *mut c_voidTrait Implementations§
Source§impl Clone for MlirDiagnostic
impl Clone for MlirDiagnostic
Source§fn clone(&self) -> MlirDiagnostic
fn clone(&self) -> MlirDiagnostic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MlirDiagnostic
Auto Trait Implementations§
impl !Send for MlirDiagnostic
impl !Sync for MlirDiagnostic
impl Freeze for MlirDiagnostic
impl RefUnwindSafe for MlirDiagnostic
impl Unpin for MlirDiagnostic
impl UnsafeUnpin for MlirDiagnostic
impl UnwindSafe for MlirDiagnostic
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