pub struct FunctionConfig {
    pub schema: Vec<ColumnTy>,
    pub default: DefaultVal,
    pub merge: MergeFn,
    pub name: String,
    pub can_subsume: bool,
}Expand description
Properties of a function added to an EGraph.
Fields§
§schema: Vec<ColumnTy>The function’s schema. The last column in the schema is the return type.
default: DefaultValThe behavior of the function when lookups are made on keys not currently present.
merge: MergeFnHow to resolve FD conflicts for the function.
name: StringThe function’s name
can_subsume: boolWhether or not subsumption is enabled for this function.
Auto Trait Implementations§
impl Freeze for FunctionConfig
impl RefUnwindSafe for FunctionConfig
impl Send for FunctionConfig
impl Sync for FunctionConfig
impl Unpin for FunctionConfig
impl UnwindSafe for FunctionConfig
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
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more