pub struct MatchRow<'a, Cfg: EGraphConfig> { /* private fields */ }Expand description
One match of a MatchSet, by row index.
Trait Implementations§
Source§impl<'a, Cfg: EGraphConfig> MatchView<Cfg> for MatchRow<'a, Cfg>
impl<'a, Cfg: EGraphConfig> MatchView<Cfg> for MatchRow<'a, Cfg>
fn get(&self, v: VarId) -> Cfg::G
fn get_mult(&self, v: MultVarId) -> Cfg::M
fn get_lit_val(&self, v: LitValVarId) -> Cfg::V
fn seq_slice(&self, v: SeqVarId) -> &[Cfg::G]
fn set_slice(&self, v: SetVarId) -> &[Cfg::G]
fn mset_slice(&self, v: MsetVarId) -> &[Cfg::C]
fn set(&mut self, v: VarId, val: Cfg::G)
fn set_mult(&mut self, v: MultVarId, val: Cfg::M)
Source§fn clear(&mut self, _v: VarId)
fn clear(&mut self, _v: VarId)
Unbind
v after a comprehension. On the owned Match this restores
the panic-on-read guard; the flat store holds no unbound state, so a
row leaves the stale value in place — equivalent for every compiled
action sequence, which sets a comprehension variable before each read.Auto Trait Implementations§
impl<'a, Cfg> !UnwindSafe for MatchRow<'a, Cfg>
impl<'a, Cfg> Freeze for MatchRow<'a, Cfg>
impl<'a, Cfg> RefUnwindSafe for MatchRow<'a, Cfg>where
&'a mut MatchSet<Cfg>: RefUnwindSafe,
impl<'a, Cfg> Send for MatchRow<'a, Cfg>
impl<'a, Cfg> Sync for MatchRow<'a, Cfg>
impl<'a, Cfg> Unpin for MatchRow<'a, Cfg>
impl<'a, Cfg> UnsafeUnpin for MatchRow<'a, Cfg>where
&'a mut MatchSet<Cfg>: UnsafeUnpin,
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