Struct ExprInList
pub struct ExprInList {
pub expr: Box<Expr>,
pub list: Box<Expr>,
}Expand description
Tests whether a value is contained in a list.
Returns true if expr equals any item in list. Returns false for an
empty list.
§Examples
in_list(x, [1, 2, 3]) // returns `true` if x is 1, 2, or 3
in_list(x, []) // returns `false`Fields§
§expr: Box<Expr>The value to search for.
list: Box<Expr>The list to search within.
Trait Implementations§
§impl Clone for ExprInList
impl Clone for ExprInList
§fn clone(&self) -> ExprInList
fn clone(&self) -> ExprInList
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 ExprInList
impl Debug for ExprInList
§impl From<ExprInList> for Expr
impl From<ExprInList> for Expr
§fn from(value: ExprInList) -> Expr
fn from(value: ExprInList) -> Expr
Converts to this type from the input type.
§impl PartialEq for ExprInList
impl PartialEq for ExprInList
impl StructuralPartialEq for ExprInList
Auto Trait Implementations§
impl Freeze for ExprInList
impl RefUnwindSafe for ExprInList
impl Send for ExprInList
impl Sync for ExprInList
impl Unpin for ExprInList
impl UnwindSafe for ExprInList
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