pub enum StringFunction {
ToLowercase,
ToUppercase,
Contains {
pattern: String,
},
Replace {
pattern: String,
replacement: String,
},
StripChars {
chars: Option<String>,
},
Split {
separator: String,
},
LenChars,
Extract {
pattern: String,
capture_group: usize,
},
}Expand description
Expression AST and supporting enums.
Supported str.* functions.
Variants§
ToLowercase
Convert UTF-8 strings to lowercase.
ToUppercase
Convert UTF-8 strings to uppercase.
Contains
Regex contains.
Replace
Regex replacement.
StripChars
Strip whitespace or the provided characters.
Split
Split by a literal separator.
LenChars
Count Unicode scalar values.
Extract
Extract a regex capture group.
Trait Implementations§
Source§impl Clone for StringFunction
impl Clone for StringFunction
Source§fn clone(&self) -> StringFunction
fn clone(&self) -> StringFunction
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 StringFunction
impl Debug for StringFunction
impl Eq for StringFunction
Source§impl PartialEq for StringFunction
impl PartialEq for StringFunction
impl StructuralPartialEq for StringFunction
Auto Trait Implementations§
impl Freeze for StringFunction
impl RefUnwindSafe for StringFunction
impl Send for StringFunction
impl Sync for StringFunction
impl Unpin for StringFunction
impl UnsafeUnpin for StringFunction
impl UnwindSafe for StringFunction
Blanket Implementations§
impl<T> Allocation for T
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> 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§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.