pub struct StringExpr { /* private fields */ }Expand description
Expression AST and supporting enums.
Builder for str.* expression functions.
Implementations§
Source§impl StringExpr
impl StringExpr
Sourcepub fn to_lowercase(self) -> Expr
pub fn to_lowercase(self) -> Expr
Convert UTF-8 strings to lowercase.
Sourcepub fn to_uppercase(self) -> Expr
pub fn to_uppercase(self) -> Expr
Convert UTF-8 strings to uppercase.
Sourcepub fn contains(self, pattern: impl Into<String>) -> Expr
pub fn contains(self, pattern: impl Into<String>) -> Expr
Return whether each string matches a regex pattern.
Sourcepub fn replace(
self,
pattern: impl Into<String>,
replacement: impl Into<String>,
) -> Expr
pub fn replace( self, pattern: impl Into<String>, replacement: impl Into<String>, ) -> Expr
Replace regex matches.
Trait Implementations§
Source§impl Clone for StringExpr
impl Clone for StringExpr
Source§fn clone(&self) -> StringExpr
fn clone(&self) -> StringExpr
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 StringExpr
impl Debug for StringExpr
Source§impl PartialEq for StringExpr
impl PartialEq for StringExpr
impl StructuralPartialEq for StringExpr
Auto Trait Implementations§
impl Freeze for StringExpr
impl RefUnwindSafe for StringExpr
impl Send for StringExpr
impl Sync for StringExpr
impl Unpin for StringExpr
impl UnsafeUnpin for StringExpr
impl UnwindSafe for StringExpr
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