Struct tree_sitter_c2rust::ffi::QueryStep
source · #[repr(C)]pub struct QueryStep {
pub symbol: c_ushort,
pub supertype_symbol: c_ushort,
pub field: c_ushort,
pub capture_ids: [c_ushort; 3],
pub depth: c_ushort,
pub alternative_index: c_ushort,
pub negated_field_list_id: c_ushort,
pub is_named_is_immediate_is_last_child_is_pass_through_is_dead_end_alternative_is_immediate_contains_captures_root_pattern_guaranteed_parent_pattern_guaranteed: [u8; 2],
}
Fields§
§symbol: c_ushort
§supertype_symbol: c_ushort
§field: c_ushort
§capture_ids: [c_ushort; 3]
§depth: c_ushort
§alternative_index: c_ushort
§negated_field_list_id: c_ushort
§is_named_is_immediate_is_last_child_is_pass_through_is_dead_end_alternative_is_immediate_contains_captures_root_pattern_guaranteed_parent_pattern_guaranteed: [u8; 2]
Implementations§
source§impl QueryStep
impl QueryStep
sourcepub fn set_is_named(&mut self, int: bool)
pub fn set_is_named(&mut self, int: bool)
This method allows you to write to a bitfield with a value
sourcepub fn set_is_immediate(&mut self, int: bool)
pub fn set_is_immediate(&mut self, int: bool)
This method allows you to write to a bitfield with a value
sourcepub fn is_immediate(&self) -> bool
pub fn is_immediate(&self) -> bool
This method allows you to read from a bitfield to a value
sourcepub fn set_is_last_child(&mut self, int: bool)
pub fn set_is_last_child(&mut self, int: bool)
This method allows you to write to a bitfield with a value
sourcepub fn is_last_child(&self) -> bool
pub fn is_last_child(&self) -> bool
This method allows you to read from a bitfield to a value
sourcepub fn set_is_pass_through(&mut self, int: bool)
pub fn set_is_pass_through(&mut self, int: bool)
This method allows you to write to a bitfield with a value
sourcepub fn is_pass_through(&self) -> bool
pub fn is_pass_through(&self) -> bool
This method allows you to read from a bitfield to a value
sourcepub fn set_is_dead_end(&mut self, int: bool)
pub fn set_is_dead_end(&mut self, int: bool)
This method allows you to write to a bitfield with a value
sourcepub fn is_dead_end(&self) -> bool
pub fn is_dead_end(&self) -> bool
This method allows you to read from a bitfield to a value
sourcepub fn set_alternative_is_immediate(&mut self, int: bool)
pub fn set_alternative_is_immediate(&mut self, int: bool)
This method allows you to write to a bitfield with a value
sourcepub fn alternative_is_immediate(&self) -> bool
pub fn alternative_is_immediate(&self) -> bool
This method allows you to read from a bitfield to a value
sourcepub fn set_contains_captures(&mut self, int: bool)
pub fn set_contains_captures(&mut self, int: bool)
This method allows you to write to a bitfield with a value
sourcepub fn contains_captures(&self) -> bool
pub fn contains_captures(&self) -> bool
This method allows you to read from a bitfield to a value
sourcepub fn set_root_pattern_guaranteed(&mut self, int: bool)
pub fn set_root_pattern_guaranteed(&mut self, int: bool)
This method allows you to write to a bitfield with a value
sourcepub fn root_pattern_guaranteed(&self) -> bool
pub fn root_pattern_guaranteed(&self) -> bool
This method allows you to read from a bitfield to a value
sourcepub fn set_parent_pattern_guaranteed(&mut self, int: bool)
pub fn set_parent_pattern_guaranteed(&mut self, int: bool)
This method allows you to write to a bitfield with a value
sourcepub fn parent_pattern_guaranteed(&self) -> bool
pub fn parent_pattern_guaranteed(&self) -> bool
This method allows you to read from a bitfield to a value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryStep
impl RefUnwindSafe for QueryStep
impl Send for QueryStep
impl Sync for QueryStep
impl Unpin for QueryStep
impl UnwindSafe for QueryStep
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)