Struct sqlparser_mysql::base::arithmetic::ArithmeticExpression
source · pub struct ArithmeticExpression {
pub ari: Arithmetic,
pub alias: Option<String>,
}
Fields§
§ari: Arithmetic
§alias: Option<String>
Implementations§
source§impl ArithmeticExpression
impl ArithmeticExpression
pub fn parse( i: &str ) -> IResult<&str, ArithmeticExpression, ParseSQLError<&str>>
source§impl ArithmeticExpression
impl ArithmeticExpression
pub fn new( op: ArithmeticOperator, left: ArithmeticBase, right: ArithmeticBase, alias: Option<String> ) -> Self
Trait Implementations§
source§impl Clone for ArithmeticExpression
impl Clone for ArithmeticExpression
source§fn clone(&self) -> ArithmeticExpression
fn clone(&self) -> ArithmeticExpression
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 ArithmeticExpression
impl Debug for ArithmeticExpression
source§impl<'de> Deserialize<'de> for ArithmeticExpression
impl<'de> Deserialize<'de> for ArithmeticExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ArithmeticExpression
impl Display for ArithmeticExpression
source§impl Hash for ArithmeticExpression
impl Hash for ArithmeticExpression
source§impl PartialEq for ArithmeticExpression
impl PartialEq for ArithmeticExpression
source§fn eq(&self, other: &ArithmeticExpression) -> bool
fn eq(&self, other: &ArithmeticExpression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArithmeticExpression
impl Serialize for ArithmeticExpression
impl Eq for ArithmeticExpression
impl StructuralPartialEq for ArithmeticExpression
Auto Trait Implementations§
impl Freeze for ArithmeticExpression
impl RefUnwindSafe for ArithmeticExpression
impl Send for ArithmeticExpression
impl Sync for ArithmeticExpression
impl Unpin for ArithmeticExpression
impl UnwindSafe for ArithmeticExpression
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