pub struct LitOpDesc<V> {
pub name: &'static str,
pub arg_sorts: &'static [&'static str],
pub ret_sort: &'static str,
pub eval: fn(&[&V]) -> V,
}Expand description
Descriptor for a primitive operation on literal values.
Fields§
§name: &'static strName in surface syntax: “+”, “*”, “not”, “<”, etc.
arg_sorts: &'static [&'static str]Argument literal sort names.
ret_sort: &'static strReturn literal sort name.
eval: fn(&[&V]) -> VEvaluate the operation on concrete values.
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for LitOpDesc<V>
impl<V> RefUnwindSafe for LitOpDesc<V>
impl<V> Send for LitOpDesc<V>
impl<V> Sync for LitOpDesc<V>
impl<V> Unpin for LitOpDesc<V>
impl<V> UnsafeUnpin for LitOpDesc<V>
impl<V> UnwindSafe for LitOpDesc<V>
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