Enum rustdb::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§
source§impl Clone for CompileFunc
impl Clone for CompileFunc
source§fn clone(&self) -> CompileFunc
fn clone(&self) -> CompileFunc
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 moreimpl 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§
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