pub struct ProcessTemplateKey {
pub definition: SymbolId,
pub params: Vec<ConstantValue>,
}Expand description
PR-029: struct ProcessTemplateKey{definition: SymbolId, params: Vec<ConstantValue>} – a hashable dedup key built from
Symbol::definition()+parameters() (see this module’s doc comment for
the instance_body_definition() deviation), used for O(1) amortized
template lookup (an ordinary HashMap<ProcessTemplateKey, _> in the
caller, e.g. codegen’s future per-template kernel cache).
Fields§
§definition: SymbolId§params: Vec<ConstantValue>Trait Implementations§
Source§impl Clone for ProcessTemplateKey
impl Clone for ProcessTemplateKey
Source§impl Debug for ProcessTemplateKey
impl Debug for ProcessTemplateKey
impl Eq for ProcessTemplateKey
See this module’s doc comment (“Hash/Eq are hand-written, not
derived”) for exactly why this is a plain marker impl over the
PartialEq above rather than #[derive(Eq)].
Source§impl Hash for ProcessTemplateKey
impl Hash for ProcessTemplateKey
Auto Trait Implementations§
impl Freeze for ProcessTemplateKey
impl RefUnwindSafe for ProcessTemplateKey
impl Send for ProcessTemplateKey
impl Sync for ProcessTemplateKey
impl Unpin for ProcessTemplateKey
impl UnsafeUnpin for ProcessTemplateKey
impl UnwindSafe for ProcessTemplateKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.