#[repr(C)]pub struct TwigWarning {
pub fidelity: c_int,
pub path_ptr: *const u8,
pub path_len: usize,
pub kind: *const c_char,
}Expand description
C ABI mirror of Zig’s TwigWarning — one thing a conversion would silently
lose. path is a slash-separated child-index trail from the analyzed root
(empty for the root itself); kind is a NUL-terminated node-kind name in
static, library-owned storage. Both borrow, with the lifetime of the
twig_document_diagnostics output array they came from.
Fields§
§fidelity: c_int§path_ptr: *const u8§path_len: usize§kind: *const c_charTrait Implementations§
Source§impl Clone for TwigWarning
impl Clone for TwigWarning
Source§fn clone(&self) -> TwigWarning
fn clone(&self) -> TwigWarning
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 TwigWarning
Auto Trait Implementations§
impl !Send for TwigWarning
impl !Sync for TwigWarning
impl Freeze for TwigWarning
impl RefUnwindSafe for TwigWarning
impl Unpin for TwigWarning
impl UnsafeUnpin for TwigWarning
impl UnwindSafe for TwigWarning
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