#[repr(C)]pub struct QueryState {
pub id: u32,
pub capture_list_id: u32,
pub start_depth: u16,
pub step_index: u16,
pub pattern_index: u16,
pub consumed_capture_count_seeking_immediate_match_has_in_progress_alternatives_dead_needs_parent: [u8; 2],
}
Fields§
§id: u32
§capture_list_id: u32
§start_depth: u16
§step_index: u16
§pattern_index: u16
§consumed_capture_count_seeking_immediate_match_has_in_progress_alternatives_dead_needs_parent: [u8; 2]
Implementations§
Source§impl QueryState
impl QueryState
Sourcepub fn set_consumed_capture_count(&mut self, int: u16)
pub fn set_consumed_capture_count(&mut self, int: u16)
This method allows you to write to a bitfield with a value
Sourcepub fn consumed_capture_count(&self) -> u16
pub fn consumed_capture_count(&self) -> u16
This method allows you to read from a bitfield to a value
Sourcepub fn set_seeking_immediate_match(&mut self, int: bool)
pub fn set_seeking_immediate_match(&mut self, int: bool)
This method allows you to write to a bitfield with a value
Sourcepub fn seeking_immediate_match(&self) -> bool
pub fn seeking_immediate_match(&self) -> bool
This method allows you to read from a bitfield to a value
Sourcepub fn set_has_in_progress_alternatives(&mut self, int: bool)
pub fn set_has_in_progress_alternatives(&mut self, int: bool)
This method allows you to write to a bitfield with a value
Sourcepub fn has_in_progress_alternatives(&self) -> bool
pub fn has_in_progress_alternatives(&self) -> bool
This method allows you to read from a bitfield to a value
Sourcepub fn set_dead(&mut self, int: bool)
pub fn set_dead(&mut self, int: bool)
This method allows you to write to a bitfield with a value
Sourcepub fn set_needs_parent(&mut self, int: bool)
pub fn set_needs_parent(&mut self, int: bool)
This method allows you to write to a bitfield with a value
Sourcepub fn needs_parent(&self) -> bool
pub fn needs_parent(&self) -> bool
This method allows you to read from a bitfield to a value
Trait Implementations§
Source§impl Clone for QueryState
impl Clone for QueryState
Source§fn clone(&self) -> QueryState
fn clone(&self) -> QueryState
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for QueryState
Auto Trait Implementations§
impl Freeze for QueryState
impl RefUnwindSafe for QueryState
impl Send for QueryState
impl Sync for QueryState
impl Unpin for QueryState
impl UnwindSafe for QueryState
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