pub struct DefaultConfig;Expand description
Default 31-bit e-graph configuration.
Trait Implementations§
Source§impl EGraphConfig for DefaultConfig
impl EGraphConfig for DefaultConfig
Source§type ClassKey = EClassKey
type ClassKey = EClassKey
Recycled key into the packed e-class data store. It has the same
payload width as
G, because the worst case has one class per node.Source§type M = Multiplicity
type M = Multiplicity
Multiplicity width for AC multiset nodes:
Multiplicity16,
Multiplicity, or Multiplicity64. Read moreSource§type Ids = DefaultNodeIds
type Ids = DefaultNodeIds
Local id bundle for the node store.
Source§fn mset_child_id(c: &Self::C) -> Self::G
fn mset_child_id(c: &Self::C) -> Self::G
Extract the global id from an AC child.
Source§fn mset_child_mult(c: &Self::C) -> Self::M
fn mset_child_mult(c: &Self::C) -> Self::M
Extract the multiplicity from an AC child.
Source§fn mset_child_with_mult(g: Self::G, mult: Self::M) -> Self::C
fn mset_child_with_mult(g: Self::G, mult: Self::M) -> Self::C
Create an AC child with a given multiplicity.
Source§fn mset_child_merge(existing: &mut Self::C, new_g: Self::G) -> bool
fn mset_child_merge(existing: &mut Self::C, new_g: Self::G) -> bool
Increment the multiplicity of an AC child. Returns true if same group. Read more
Source§fn mset_child_single(g: Self::G) -> Self::C
fn mset_child_single(g: Self::G) -> Self::C
Create an AC child with multiplicity 1.
Auto Trait Implementations§
impl Freeze for DefaultConfig
impl RefUnwindSafe for DefaultConfig
impl Send for DefaultConfig
impl Sync for DefaultConfig
impl Unpin for DefaultConfig
impl UnsafeUnpin for DefaultConfig
impl UnwindSafe for DefaultConfig
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