pub struct IndexSampler<'a, Cfg: EGraphConfig, L: LitVal, const TRACK: bool, const PROOFS: bool> { /* private fields */ }Expand description
CrossSampler over one round’s indices: the implementation the scheduler
gets its samples from.
Emitter draws come from the slice the atom’s semi-naive mode reads, which is
the relation it will actually enumerate. Probe buckets come from the full
index in every mode, matching FanOuts, which the full build measures and
every variant prices against: a variant’s delta shows up in the atom’s base
cardinality, and applying it again to the probe would charge it twice.
Implementations§
Source§impl<'a, Cfg: EGraphConfig, L: LitVal, const TRACK: bool, const PROOFS: bool> IndexSampler<'a, Cfg, L, TRACK, PROOFS>
impl<'a, Cfg: EGraphConfig, L: LitVal, const TRACK: bool, const PROOFS: bool> IndexSampler<'a, Cfg, L, TRACK, PROOFS>
pub fn new( eg: &'a EGraph<Cfg, L, TRACK, PROOFS>, index: VariantIndex<'a, Cfg>, ) -> Self
Trait Implementations§
Source§impl<Cfg: EGraphConfig, L: LitVal, const TRACK: bool, const PROOFS: bool> CrossSampler<<Cfg as EGraphConfig>::O> for IndexSampler<'_, Cfg, L, TRACK, PROOFS>
impl<Cfg: EGraphConfig, L: LitVal, const TRACK: bool, const PROOFS: bool> CrossSampler<<Cfg as EGraphConfig>::O> for IndexSampler<'_, Cfg, L, TRACK, PROOFS>
Source§fn key_classes(&self, node: usize, site: KeySite, out: &mut Vec<usize>)
fn key_classes(&self, node: usize, site: KeySite, out: &mut Vec<usize>)
The classes a variable bound at
site takes for emitter node node.
One class for KeySite::Node and KeySite::Child; for
KeySite::Element, every distinct class among the node’s children.Auto Trait Implementations§
impl<'a, Cfg, L, const TRACK: bool, const PROOFS: bool> Freeze for IndexSampler<'a, Cfg, L, TRACK, PROOFS>
impl<'a, Cfg, L, const TRACK: bool, const PROOFS: bool> RefUnwindSafe for IndexSampler<'a, Cfg, L, TRACK, PROOFS>
impl<'a, Cfg, L, const TRACK: bool, const PROOFS: bool> Send for IndexSampler<'a, Cfg, L, TRACK, PROOFS>
impl<'a, Cfg, L, const TRACK: bool, const PROOFS: bool> Sync for IndexSampler<'a, Cfg, L, TRACK, PROOFS>
impl<'a, Cfg, L, const TRACK: bool, const PROOFS: bool> Unpin for IndexSampler<'a, Cfg, L, TRACK, PROOFS>
impl<'a, Cfg, L, const TRACK: bool, const PROOFS: bool> UnsafeUnpin for IndexSampler<'a, Cfg, L, TRACK, PROOFS>
impl<'a, Cfg, L, const TRACK: bool, const PROOFS: bool> UnwindSafe for IndexSampler<'a, Cfg, L, TRACK, PROOFS>
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