Enum rustdb::run::CompileFunc
source · [−]#[non_exhaustive]
pub enum CompileFunc {
Value(fn(_: &Block<'_>, _: &mut [Expr]) -> CExpPtr<Value>),
Int(fn(_: &Block<'_>, _: &mut [Expr]) -> CExpPtr<i64>),
Float(fn(_: &Block<'_>, _: &mut [Expr]) -> CExpPtr<f64>),
}
Expand description
Function that compiles a builtin function call ( see Database::new ).
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Value(fn(_: &Block<'_>, _: &mut [Expr]) -> CExpPtr<Value>)
Int(fn(_: &Block<'_>, _: &mut [Expr]) -> CExpPtr<i64>)
Float(fn(_: &Block<'_>, _: &mut [Expr]) -> CExpPtr<f64>)
Trait Implementations
sourceimpl Clone for CompileFunc
impl Clone for CompileFunc
sourcefn clone(&self) -> CompileFunc
fn clone(&self) -> CompileFunc
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for CompileFunc
Auto Trait Implementations
impl RefUnwindSafe for CompileFunc
impl Send for CompileFunc
impl Sync for CompileFunc
impl Unpin for CompileFunc
impl UnwindSafe for CompileFunc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more