pub enum ExplainKeyword {
Explain,
Describe,
Desc,
}Expand description
Which leading keyword spelled an EXPLAIN-family statement: the canonical EXPLAIN,
or MySQL’s DESCRIBE/DESC synonyms.
A surface tag (no meta): the keyword’s span is subsumed by the enclosing
ExplainStatement/DescribeStatement, exactly as ExplainFormat rides its
parent’s span. MySQL accepts all three spellings for both the query-plan form
(ExplainStatement) and the table-metadata form (DescribeStatement);
PostgreSQL has only EXPLAIN, so its parser produces only
Explain.
Variants§
Explain
The canonical EXPLAIN keyword (the only spelling PostgreSQL accepts).
Describe
MySQL’s DESCRIBE synonym.
Desc
MySQL’s abbreviated DESC synonym.
Trait Implementations§
Source§impl Clone for ExplainKeyword
impl Clone for ExplainKeyword
Source§fn clone(&self) -> ExplainKeyword
fn clone(&self) -> ExplainKeyword
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 ExplainKeyword
Source§impl Debug for ExplainKeyword
impl Debug for ExplainKeyword
Source§impl<'de> Deserialize<'de> for ExplainKeyword
impl<'de> Deserialize<'de> for ExplainKeyword
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 ExplainKeyword
Source§impl Hash for ExplainKeyword
impl Hash for ExplainKeyword
Source§impl PartialEq for ExplainKeyword
impl PartialEq for ExplainKeyword
Source§impl Render for ExplainKeyword
impl Render for ExplainKeyword
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Return the render for this value.
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
The binding power this node contributes when it appears as an operand, or
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for ExplainKeyword
impl Serialize for ExplainKeyword
impl StructuralPartialEq for ExplainKeyword
Auto Trait Implementations§
impl Freeze for ExplainKeyword
impl RefUnwindSafe for ExplainKeyword
impl Send for ExplainKeyword
impl Sync for ExplainKeyword
impl Unpin for ExplainKeyword
impl UnsafeUnpin for ExplainKeyword
impl UnwindSafe for ExplainKeyword
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