pub enum BuiltInFunction {
Show 58 variants
Sqrt,
Sin,
Cos,
Tan,
Asin,
Acos,
Atan,
Log,
Log10,
Exp,
Abs,
Floor,
Ceil,
Round,
Trunc,
Min,
Max,
Avg,
Sum,
Prod,
Median,
Percentile,
Range,
Len,
Head,
Tail,
Slice,
Concat,
Dot,
Unique,
Sort,
SortBy,
Reverse,
Any,
All,
Map,
Reduce,
Filter,
Every,
Some,
Split,
Join,
Replace,
Trim,
Uppercase,
Lowercase,
Includes,
Format,
Typeof,
Arity,
Keys,
Values,
Entries,
ToString,
ToNumber,
ToBool,
Print,
TimeNow,
}Variants§
Sqrt
Sin
Cos
Tan
Asin
Acos
Atan
Log
Log10
Exp
Abs
Floor
Ceil
Round
Trunc
Min
Max
Avg
Sum
Prod
Median
Percentile
Range
Len
Head
Tail
Slice
Concat
Dot
Unique
Sort
SortBy
Reverse
Any
All
Map
Reduce
Filter
Every
Some
Split
Join
Replace
Trim
Uppercase
Lowercase
Includes
Format
Typeof
Arity
Keys
Values
Entries
ToString
ToNumber
ToBool
TimeNow
Implementations§
Source§impl BuiltInFunction
impl BuiltInFunction
pub fn from_ident(ident: &str) -> Option<Self>
pub fn name(&self) -> &'static str
pub fn arity(&self) -> FunctionArity
pub fn call( &self, args: Vec<Value>, heap: Rc<RefCell<Heap>>, bindings: Rc<RefCell<HashMap<String, Value>>>, call_depth: usize, ) -> Result<Value>
pub fn all() -> Vec<Self>
pub fn all_names() -> Vec<&'static str>
Trait Implementations§
Source§impl Clone for BuiltInFunction
impl Clone for BuiltInFunction
Source§fn clone(&self) -> BuiltInFunction
fn clone(&self) -> BuiltInFunction
Returns a duplicate 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 moreSource§impl Debug for BuiltInFunction
impl Debug for BuiltInFunction
Source§impl<'de> Deserialize<'de> for BuiltInFunction
impl<'de> Deserialize<'de> for BuiltInFunction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for BuiltInFunction
impl Hash for BuiltInFunction
Source§impl Ord for BuiltInFunction
impl Ord for BuiltInFunction
Source§fn cmp(&self, other: &BuiltInFunction) -> Ordering
fn cmp(&self, other: &BuiltInFunction) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BuiltInFunction
impl PartialEq for BuiltInFunction
Source§impl PartialOrd for BuiltInFunction
impl PartialOrd for BuiltInFunction
Source§impl Serialize for BuiltInFunction
impl Serialize for BuiltInFunction
impl Copy for BuiltInFunction
impl Eq for BuiltInFunction
impl StructuralPartialEq for BuiltInFunction
Auto Trait Implementations§
impl Freeze for BuiltInFunction
impl RefUnwindSafe for BuiltInFunction
impl Send for BuiltInFunction
impl Sync for BuiltInFunction
impl Unpin for BuiltInFunction
impl UnwindSafe for BuiltInFunction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.