Skip to main content

Config64

Struct Config64 

Source
pub struct Config64;
Expand description

63-bit e-graph configuration (63 payload bits in a u64 word).

Trait Implementations§

Source§

impl EGraphConfig for Config64

Source§

type Index = u64

Unsigned machine word backing all capacity-coupled DenseIds. Read more
Source§

type G = ENodeId64

Global e-node id (e.g. 31-bit ENodeId).
Source§

type ClassKey = EClassKey64

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 O = OpId64

Operator id.
Source§

type S = SortId64

Sort id.
Source§

type V = LitValId64

Interned literal value id.
Source§

type UL = UseListId64

Use-list id.
Source§

type UN = UseNodeId64

Use-list node id.
Source§

type C = Pair<ENodeId64, Multiplicity64>

AC child type (e.g. (G, Multiplicity)).
Source§

type M = Multiplicity64

Multiplicity width for AC multiset nodes: Multiplicity16, Multiplicity, or Multiplicity64. Read more
Source§

type Ids = NodeIds64

Local id bundle for the node store.
Source§

type Au = AuIds64

AU search/snapshot/pool id bundle.
Source§

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

Extract the multiplicity from an AC child.
Source§

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

Increment the multiplicity of an AC child. Returns true if same group. Read more
Source§

fn mset_child_single(g: Self::G) -> Self::C

Create an AC child with multiplicity 1.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.