Enum rustdb::run::CompileFunc [−][src]
#[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
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
Mutably borrows from an owned value. Read more