pub struct ExpressionRawPointer(pub Rc<Expression>);Expand description
Wrap a reference of an expression as a raw pointer
to get trivialize comparison and hashing. Tries to
reproduce the effect of id(x) from Python world.
Tuple Fields§
§0: Rc<Expression>Trait Implementations§
Source§impl CachedMapper<ExpressionRawPointer, u64> for HashCacher
impl CachedMapper<ExpressionRawPointer, u64> for HashCacher
fn query_cache(&self, key: &ExpressionRawPointer) -> Option<&u64>
fn add_to_cache(&mut self, key: ExpressionRawPointer, val: u64)
Source§impl Hash for ExpressionRawPointer
impl Hash for ExpressionRawPointer
Source§impl PartialEq for ExpressionRawPointer
impl PartialEq for ExpressionRawPointer
impl Eq for ExpressionRawPointer
Auto Trait Implementations§
impl Freeze for ExpressionRawPointer
impl RefUnwindSafe for ExpressionRawPointer
impl !Send for ExpressionRawPointer
impl !Sync for ExpressionRawPointer
impl Unpin for ExpressionRawPointer
impl UnwindSafe for ExpressionRawPointer
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