#[non_exhaustive]pub enum BuiltinFunction {
HasParseFact,
Size,
IsEmpty,
Contains,
All,
Exists,
Matches,
}Expand description
Bounded built-in function.
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.
HasParseFact
Returns true when a named parse fact exists.
Size
Returns collection or string size.
IsEmpty
Returns true when a collection or string is empty.
Contains
Returns true when a collection or string contains a value.
All
Returns true when every boolean argument is true.
Exists
Returns true when any boolean argument is true.
Matches
Returns true when a bounded regex matches a string.
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 (const: unstable) · 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 PartialEq for BuiltinFunction
impl PartialEq for BuiltinFunction
Source§fn eq(&self, other: &BuiltinFunction) -> bool
fn eq(&self, other: &BuiltinFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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