pub struct Expr { /* private fields */ }Expand description
Expression builder
Implementations§
Source§impl Expr
impl Expr
Sourcepub fn function<T, F>(self, name: T, function: F) -> Expr
pub fn function<T, F>(self, name: T, function: F) -> Expr
Set function. This functions NOT be cloned. Have highest priority.
Sourcepub fn const_function<T>(
self,
name: T,
function: fn(Vec<Value>) -> Result<Value, Error>,
) -> Expr
pub fn const_function<T>( self, name: T, function: fn(Vec<Value>) -> Result<Value, Error>, ) -> Expr
Set const function. This functions be cloned. Have lowest priority.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Expr
impl<'de> Deserialize<'de> for Expr
Source§fn deserialize<D>(deserializer: D) -> Result<Expr, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Expr, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Expr
impl !RefUnwindSafe for Expr
impl !Send for Expr
impl !Sync for Expr
impl Unpin for Expr
impl !UnwindSafe for Expr
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