pub enum LiteralNorm {
Preserve,
Category,
Full,
}Expand description
Literal-normalization strategy.
Variants§
Preserve
Keep literal values distinct; only identifiers are renamed.
Category
Collapse literals by category (integer, float, string, char, bool).
Full
Collapse every literal to a single placeholder.
Trait Implementations§
Source§impl Clone for LiteralNorm
impl Clone for LiteralNorm
Source§fn clone(&self) -> LiteralNorm
fn clone(&self) -> LiteralNorm
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 LiteralNorm
Source§impl Debug for LiteralNorm
impl Debug for LiteralNorm
Source§impl Default for LiteralNorm
impl Default for LiteralNorm
Source§fn default() -> LiteralNorm
fn default() -> LiteralNorm
Returns the “default value” for a type. Read more
impl Eq for LiteralNorm
Source§impl PartialEq for LiteralNorm
impl PartialEq for LiteralNorm
impl StructuralPartialEq for LiteralNorm
Auto Trait Implementations§
impl Freeze for LiteralNorm
impl RefUnwindSafe for LiteralNorm
impl Send for LiteralNorm
impl Sync for LiteralNorm
impl Unpin for LiteralNorm
impl UnsafeUnpin for LiteralNorm
impl UnwindSafe for LiteralNorm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.