Enum cranelift_egraph::NewOrExisting
source · pub enum NewOrExisting<T> {
New(T),
Existing(T),
}
Expand description
A new or existing T
when adding to a deduplicated set or data
structure, like an egraph.
Variants§
Implementations§
source§impl<T> NewOrExisting<T>
impl<T> NewOrExisting<T>
Trait Implementations§
source§impl<T: Clone> Clone for NewOrExisting<T>
impl<T: Clone> Clone for NewOrExisting<T>
source§fn clone(&self) -> NewOrExisting<T>
fn clone(&self) -> NewOrExisting<T>
Returns a copy 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 more