pub struct Normalized {
pub template: String,
pub rewritten: String,
pub values: Vec<(String, NormalizedValue)>,
pub spellings: Vec<String>,
}Expand description
The normalizer’s outputs. See the module documentation.
Fields§
§template: StringThe canonical template: two statements share it only if they parse identically.
rewritten: StringThe statement with normalized literals as $__AUTO_*__
parameters.
values: Vec<(String, NormalizedValue)>The (placeholder, value) pairs, in token order.
spellings: Vec<String>The original source spelling of each Self::values entry, in the
same order: the text the result column keeps (RETURN 1 stays 1).
Trait Implementations§
Source§impl Clone for Normalized
impl Clone for Normalized
Source§impl Debug for Normalized
impl Debug for Normalized
Source§impl PartialEq for Normalized
impl PartialEq for Normalized
impl StructuralPartialEq for Normalized
Auto Trait Implementations§
impl Forget for Normalized
impl Freeze for Normalizedwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, NormalizedValue)>: Freeze,
PhantomData<String>: Freeze,
impl Move for Normalized
impl RefUnwindSafe for Normalized
impl Send for Normalizedwhere
RawVecInner: Send,
impl Sync for Normalizedwhere
RawVecInner: Sync,
impl Unpin for Normalized
impl UnsafeUnpin for Normalizedwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, NormalizedValue)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Normalizedwhere
RawVecInner: UnwindSafe,
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