pub enum UserInputAst {
Clause(Vec<(Option<Occur>, UserInputAst)>),
Leaf(Box<UserInputLeaf>),
Boost(Box<UserInputAst>, f64),
}
Variants
Clause(Vec<(Option<Occur>, UserInputAst)>)
Leaf(Box<UserInputLeaf>)
Boost(Box<UserInputAst>, f64)
Implementations
sourceimpl 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
sourceimpl Debug for UserInputAst
impl Debug for UserInputAst
sourceimpl From<UserInputLeaf> for UserInputAst
impl From<UserInputLeaf> for UserInputAst
sourcefn from(leaf: UserInputLeaf) -> UserInputAst
fn from(leaf: UserInputLeaf) -> UserInputAst
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for UserInputAst
impl Send for UserInputAst
impl Sync for UserInputAst
impl Unpin for UserInputAst
impl UnwindSafe for UserInputAst
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more