#[repr(C)]pub struct TwigQueryMatch {
pub node_id: u32,
pub span: TwigSpan,
pub content_span: TwigSpan,
pub has_content_span: c_int,
pub kind: *const c_char,
}Expand description
C ABI mirror of Zig’s TwigQueryMatch — one node returned by
twig_document_query. content_span is only meaningful when
has_content_span is non-zero. kind is a NUL-terminated node-kind name
in static, library-owned storage (never freed).
Fields§
§node_id: u32§span: TwigSpan§content_span: TwigSpan§has_content_span: c_int§kind: *const c_charTrait Implementations§
Source§impl Clone for TwigQueryMatch
impl Clone for TwigQueryMatch
Source§fn clone(&self) -> TwigQueryMatch
fn clone(&self) -> TwigQueryMatch
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 TwigQueryMatch
Auto Trait Implementations§
impl !Send for TwigQueryMatch
impl !Sync for TwigQueryMatch
impl Freeze for TwigQueryMatch
impl RefUnwindSafe for TwigQueryMatch
impl Unpin for TwigQueryMatch
impl UnsafeUnpin for TwigQueryMatch
impl UnwindSafe for TwigQueryMatch
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