Struct ExprBetween
pub struct ExprBetween {
pub expr: Box<Expr>,
pub low: Box<Expr>,
pub high: Box<Expr>,
}Expand description
Tests whether a value lies within an inclusive range.
Returns true if low <= expr <= high.
§Examples
between(age, 18, 65) // returns `true` if 18 <= age <= 65Fields§
§expr: Box<Expr>The value being tested.
low: Box<Expr>Inclusive lower bound.
high: Box<Expr>Inclusive upper bound.
Trait Implementations§
§impl Clone for ExprBetween
impl Clone for ExprBetween
§fn clone(&self) -> ExprBetween
fn clone(&self) -> ExprBetween
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 more§impl Debug for ExprBetween
impl Debug for ExprBetween
§impl From<ExprBetween> for Expr
impl From<ExprBetween> for Expr
§fn from(value: ExprBetween) -> Expr
fn from(value: ExprBetween) -> Expr
Converts to this type from the input type.
§impl PartialEq for ExprBetween
impl PartialEq for ExprBetween
impl StructuralPartialEq for ExprBetween
Auto Trait Implementations§
impl Freeze for ExprBetween
impl RefUnwindSafe for ExprBetween
impl Send for ExprBetween
impl Sync for ExprBetween
impl Unpin for ExprBetween
impl UnsafeUnpin for ExprBetween
impl UnwindSafe for ExprBetween
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