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 Normalized
impl Move for Normalized
impl RefUnwindSafe for Normalized
impl Send for Normalized
impl Sync for Normalized
impl Unpin for Normalized
impl UnsafeUnpin for Normalized
impl UnwindSafe for Normalized
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