pub struct TreeAdditiveCostModel {}Expand description
A cost model that computes the cost by summing the cost of each node.
Trait Implementations§
Source§impl Clone for TreeAdditiveCostModel
impl Clone for TreeAdditiveCostModel
Source§fn clone(&self) -> TreeAdditiveCostModel
fn clone(&self) -> TreeAdditiveCostModel
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 CostModel<u64> for TreeAdditiveCostModel
impl CostModel<u64> for TreeAdditiveCostModel
Source§fn fold(
&self,
_head: &str,
children_cost: &[DefaultCost],
head_cost: DefaultCost,
) -> DefaultCost
fn fold( &self, _head: &str, children_cost: &[DefaultCost], head_cost: DefaultCost, ) -> DefaultCost
The total cost of a term given the cost of the root e-node and its immediate children’s total costs.
Source§fn enode_cost(
&self,
egraph: &EGraph,
func: &Function,
_enode: &Enode<'_>,
) -> DefaultCost
fn enode_cost( &self, egraph: &EGraph, func: &Function, _enode: &Enode<'_>, ) -> DefaultCost
The cost of an enode (without the cost of children)
Source§impl Default for TreeAdditiveCostModel
impl Default for TreeAdditiveCostModel
Source§fn default() -> TreeAdditiveCostModel
fn default() -> TreeAdditiveCostModel
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TreeAdditiveCostModel
impl RefUnwindSafe for TreeAdditiveCostModel
impl Send for TreeAdditiveCostModel
impl Sync for TreeAdditiveCostModel
impl Unpin for TreeAdditiveCostModel
impl UnwindSafe for TreeAdditiveCostModel
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