pub struct LeaderCardinalityModel;Expand description
Default implementation: pick the min-cardinality input as leader,
gated by the configurable wcoj_var_ordering_threshold ratio.
Trait Implementations§
Source§impl Clone for LeaderCardinalityModel
impl Clone for LeaderCardinalityModel
Source§fn clone(&self) -> LeaderCardinalityModel
fn clone(&self) -> LeaderCardinalityModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LeaderCardinalityModel
impl Debug for LeaderCardinalityModel
Source§impl Default for LeaderCardinalityModel
impl Default for LeaderCardinalityModel
Source§fn default() -> LeaderCardinalityModel
fn default() -> LeaderCardinalityModel
Returns the “default value” for a type. Read more
Source§impl WcojVariableOrderingModel for LeaderCardinalityModel
impl WcojVariableOrderingModel for LeaderCardinalityModel
Source§fn pick_triangle_leader(
&self,
rel_ids: [RelId; 3],
stats: &StatsManager,
config: &CompilerConfig,
) -> Option<u8>
fn pick_triangle_leader( &self, rel_ids: [RelId; 3], stats: &StatsManager, config: &CompilerConfig, ) -> Option<u8>
Pick a leader for the triangle WCOJ shape. Read more
Source§fn pick_4cycle_leader(
&self,
rel_ids: [RelId; 4],
stats: &StatsManager,
config: &CompilerConfig,
) -> Option<u8>
fn pick_4cycle_leader( &self, rel_ids: [RelId; 4], stats: &StatsManager, config: &CompilerConfig, ) -> Option<u8>
Pick a leader for the 4-cycle WCOJ shape. Read more
impl Copy for LeaderCardinalityModel
Auto Trait Implementations§
impl Freeze for LeaderCardinalityModel
impl RefUnwindSafe for LeaderCardinalityModel
impl Send for LeaderCardinalityModel
impl Sync for LeaderCardinalityModel
impl Unpin for LeaderCardinalityModel
impl UnsafeUnpin for LeaderCardinalityModel
impl UnwindSafe for LeaderCardinalityModel
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