pub struct ExprStartsWith {
pub expr: Box<Expr>,
pub prefix: Box<Expr>,
}Expand description
A string prefix-match expression: starts_with(expr, prefix).
Returns true if expr starts with prefix. The attribute reference
is always expr (lhs) and the prefix value is always prefix (rhs).
§Examples
starts_with(name, "Al") // true if name starts with "Al"Fields§
§expr: Box<Expr>The attribute to test.
prefix: Box<Expr>The prefix value to match against.
Trait Implementations§
Source§impl Clone for ExprStartsWith
impl Clone for ExprStartsWith
Source§fn clone(&self) -> ExprStartsWith
fn clone(&self) -> ExprStartsWith
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 ExprStartsWith
impl Debug for ExprStartsWith
Source§impl From<ExprStartsWith> for Expr
impl From<ExprStartsWith> for Expr
Source§fn from(value: ExprStartsWith) -> Self
fn from(value: ExprStartsWith) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExprStartsWith
impl PartialEq for ExprStartsWith
impl StructuralPartialEq for ExprStartsWith
Auto Trait Implementations§
impl Freeze for ExprStartsWith
impl RefUnwindSafe for ExprStartsWith
impl Send for ExprStartsWith
impl Sync for ExprStartsWith
impl Unpin for ExprStartsWith
impl UnsafeUnpin for ExprStartsWith
impl UnwindSafe for ExprStartsWith
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