#[non_exhaustive]pub enum Written {
Statement(String),
Block(String),
}Expand description
A statement a dialect wrote, and how it ends.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Statement(String)
A statement the caller ends the way it ends every other statement in
the file — a ;, and the engine’s batch separator where it has one.
Block(String)
A block that carries its own end, such as a PL/SQL block and the /
line that runs it in SQL*Plus. The caller adds nothing but a line
break.
Implementations§
Trait Implementations§
impl Eq for Written
impl StructuralPartialEq for Written
Auto Trait Implementations§
impl Forget for Written
impl Freeze for Written
impl Move for Written
impl RefUnwindSafe for Written
impl Send for Written
impl Sync for Written
impl Unpin for Written
impl UnsafeUnpin for Written
impl UnwindSafe for Written
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