#[repr(C)]pub struct FigWarning {
pub size: u32,
pub code: c_int,
pub cause: c_int,
pub path: *const u8,
pub path_len: usize,
pub note: *const u8,
pub note_len: usize,
}Expand description
One lossy event from fig_*_diagnose, pulled by index via fig_*_warning.
Caller-allocated; lead with size = size_of::<FigWarning>() (same policy as
FigSerializeOptions/FigError). path/note are NOT NUL-terminated and
borrow the producing handle’s diagnostics arena (valid until the next
diagnose on it or its destroy) — copy them out before then. Mirrors
FigWarning in fig.h.
Fields§
§size: u32§code: c_int§cause: c_int§path: *const u8§path_len: usize§note: *const u8§note_len: usizeImplementations§
Source§impl FigWarning
impl FigWarning
Trait Implementations§
Source§impl Clone for FigWarning
impl Clone for FigWarning
Source§fn clone(&self) -> FigWarning
fn clone(&self) -> FigWarning
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 FigWarning
Auto Trait Implementations§
impl !Send for FigWarning
impl !Sync for FigWarning
impl Freeze for FigWarning
impl RefUnwindSafe for FigWarning
impl Unpin for FigWarning
impl UnsafeUnpin for FigWarning
impl UnwindSafe for FigWarning
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