#[repr(C)]pub struct QueryStep {
pub symbol: u16,
pub supertype_symbol: u16,
pub field: TSFieldId,
pub capture_ids: [u16; 3],
pub depth: u16,
pub alternative_index: u16,
pub negated_field_list_id: u16,
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: u16
§supertype_symbol: u16
§field: TSFieldId
§capture_ids: [u16; 3]
§depth: u16
§alternative_index: u16
§negated_field_list_id: u16
§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