pub enum Atomic {
Number(Number),
Text(Text),
Bool(Bool),
Operator(Operator),
Maybe(MaybeValue),
Sign(Sign),
}Variants§
Implementations§
Source§impl Atomic
impl Atomic
pub fn parse(input: &str) -> IResult<&str, Atomic>
pub fn is_binary_op(&self) -> bool
pub fn is_operand(&self) -> bool
pub fn extract_binary_op(&self) -> Option<Operator>
pub fn extract_left_bracket(&self) -> Option<Sign>
pub fn extract_right_bracket(&self) -> Option<Sign>
Trait Implementations§
Source§impl ToSqlSegment for Atomic
impl ToSqlSegment for Atomic
fn gen_sql_segment(&self) -> SqlSegment
fn gen_sql_segments(&self) -> Vec<SqlSegment>
impl StructuralPartialEq for Atomic
Auto Trait Implementations§
impl Freeze for Atomic
impl RefUnwindSafe for Atomic
impl Send for Atomic
impl Sync for Atomic
impl Unpin for Atomic
impl UnwindSafe for Atomic
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