pub enum UserInputAst {
Clause(Vec<(Option<Occur>, UserInputAst)>),
Leaf(Box<UserInputLeaf>),
Boost(Box<UserInputAst>, f64),
}
Variants§
Implementations§
source§impl UserInputAst
impl UserInputAst
pub fn unary(self, occur: Occur) -> UserInputAst
pub fn empty_query() -> UserInputAst
pub fn and(asts: Vec<UserInputAst>) -> UserInputAst
pub fn or(asts: Vec<UserInputAst>) -> UserInputAst
Trait Implementations§
source§impl Clone for UserInputAst
impl Clone for UserInputAst
source§fn clone(&self) -> UserInputAst
fn clone(&self) -> UserInputAst
Returns a copy 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 UserInputAst
impl Debug for UserInputAst
source§impl From<UserInputLeaf> for UserInputAst
impl From<UserInputLeaf> for UserInputAst
source§fn from(leaf: UserInputLeaf) -> UserInputAst
fn from(leaf: UserInputLeaf) -> UserInputAst
Converts to this type from the input type.
source§impl PartialEq for UserInputAst
impl PartialEq for UserInputAst
source§fn eq(&self, other: &UserInputAst) -> bool
fn eq(&self, other: &UserInputAst) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UserInputAst
Auto Trait Implementations§
impl Freeze for UserInputAst
impl RefUnwindSafe for UserInputAst
impl Send for UserInputAst
impl Sync for UserInputAst
impl Unpin for UserInputAst
impl UnwindSafe for UserInputAst
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