pub trait ExactKey {
// Required method
fn identity(&self) -> ExactIdentity<'_>;
}Expand description
A bound expression compared by shared tree identity, as ExactBoundExpr compares it.
Maps keyed by ExactBoundExpr or WeakBoundExprKey can be probed with
expr as &dyn ExactKey for a borrowed BoundExpression, which spares cloning the
expression for every lookup. Clones touch reference counts that every scan thread shares.
Required Methods§
Sourcefn identity(&self) -> ExactIdentity<'_>
fn identity(&self) -> ExactIdentity<'_>
The identity of the expression that this key stands for.
Trait Implementations§
Source§impl<'a> Borrow<dyn ExactKey + 'a> for ExactBoundExpr
impl<'a> Borrow<dyn ExactKey + 'a> for ExactBoundExpr
Source§impl<'a> Borrow<dyn ExactKey + 'a> for WeakBoundExprKey
impl<'a> Borrow<dyn ExactKey + 'a> for WeakBoundExprKey
impl Eq for dyn ExactKey + '_
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".