pub enum ModuloSpelling {
Percent,
Mod,
}Expand description
Surface spelling for the modulo operator BinaryOperator::Modulo.
% is universal; MySQL additionally spells the same operation with the MOD
keyword. The canonical AST keeps one modulo operator and this tag
only records which spelling the source used so rendering round-trips exactly.
Variants§
Trait Implementations§
Source§impl Clone for ModuloSpelling
impl Clone for ModuloSpelling
Source§fn clone(&self) -> ModuloSpelling
fn clone(&self) -> ModuloSpelling
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModuloSpelling
Source§impl Debug for ModuloSpelling
impl Debug for ModuloSpelling
Source§impl<'de> Deserialize<'de> for ModuloSpelling
impl<'de> Deserialize<'de> for ModuloSpelling
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
impl Eq for ModuloSpelling
Source§impl Hash for ModuloSpelling
impl Hash for ModuloSpelling
Source§impl PartialEq for ModuloSpelling
impl PartialEq for ModuloSpelling
Source§impl Serialize for ModuloSpelling
impl Serialize for ModuloSpelling
impl StructuralPartialEq for ModuloSpelling
Auto Trait Implementations§
impl Freeze for ModuloSpelling
impl RefUnwindSafe for ModuloSpelling
impl Send for ModuloSpelling
impl Sync for ModuloSpelling
impl Unpin for ModuloSpelling
impl UnsafeUnpin for ModuloSpelling
impl UnwindSafe for ModuloSpelling
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