pub struct Pattern {
pub len: PatternLen,
pub disassembly_vars: Box<[Variable]>,
pub blocks: Box<[Block]>,
pub pos: Box<[Assertation]>,
}Fields§
§len: PatternLen§disassembly_vars: Box<[Variable]>§blocks: Box<[Block]>§pos: Box<[Assertation]>Implementations§
Source§impl Pattern
impl Pattern
pub fn blocks(&self) -> &[Block]
pub fn disassembly_var(&self, id: VariableId) -> &Variable
pub fn disassembly_vars(&self) -> &[Variable]
pub fn disassembly_pos_match(&self) -> &[Assertation]
pub fn produced_tables(&self) -> impl Iterator<Item = &ProducedTable>
pub fn produced_token_fields(&self) -> impl Iterator<Item = &ProducedTokenField>
pub fn variants_num(&self) -> usize
pub fn bits_produced(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl !Send for Pattern
impl !Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
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