pub struct NormalizedExpression { /* private fields */ }Expand description
A normalized expression with precomputed stable hash.
NormalizedExpression wraps an Expression that has been transformed
into canonical form, along with a stable hash value that remains consistent
across runs and platforms.
Implementations§
Source§impl NormalizedExpression
impl NormalizedExpression
Sourcepub fn new(expr: &Expression) -> Self
pub fn new(expr: &Expression) -> Self
Create a normalized form of the given expression.
Sourcepub fn inner(&self) -> &Expression
pub fn inner(&self) -> &Expression
Access the normalized expression.
Sourcepub fn into_inner(self) -> Expression
pub fn into_inner(self) -> Expression
Consume and return the inner normalized expression.
Sourcepub fn stable_hash(&self) -> u64
pub fn stable_hash(&self) -> u64
Get the stable hash value for this normalized expression.
This hash is deterministic across runs and platforms, making it suitable for cache keys.
Trait Implementations§
Source§impl Clone for NormalizedExpression
impl Clone for NormalizedExpression
Source§fn clone(&self) -> NormalizedExpression
fn clone(&self) -> NormalizedExpression
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NormalizedExpression
impl Debug for NormalizedExpression
Source§impl Display for NormalizedExpression
impl Display for NormalizedExpression
Source§impl Hash for NormalizedExpression
impl Hash for NormalizedExpression
Source§impl PartialEq for NormalizedExpression
impl PartialEq for NormalizedExpression
impl Eq for NormalizedExpression
Auto Trait Implementations§
impl Freeze for NormalizedExpression
impl RefUnwindSafe for NormalizedExpression
impl Send for NormalizedExpression
impl Sync for NormalizedExpression
impl Unpin for NormalizedExpression
impl UnwindSafe for NormalizedExpression
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.