pub struct FusedOpParamsKey {
pub tag: u16,
pub bits: Vec<u64>,
pub ints: Vec<i64>,
}Expand description
Hashable key for FusedOpParams. Used by op_key/CSE so that two
Op::Fused(id, params) nodes with identical params dedupe.
The encoding is variant-tag + payload as a Vec<u64> (bit patterns
for floats, repr for ints/usize). Mirrors the existing
crate::opt-style OpKey encoding so future extensions slot in
without rebuilding the CSE map.
Fields§
§tag: u16§bits: Vec<u64>§ints: Vec<i64>Trait Implementations§
Source§impl Clone for FusedOpParamsKey
impl Clone for FusedOpParamsKey
Source§impl Debug for FusedOpParamsKey
impl Debug for FusedOpParamsKey
impl Eq for FusedOpParamsKey
Source§impl Hash for FusedOpParamsKey
impl Hash for FusedOpParamsKey
Source§impl PartialEq for FusedOpParamsKey
impl PartialEq for FusedOpParamsKey
impl StructuralPartialEq for FusedOpParamsKey
Auto Trait Implementations§
impl Freeze for FusedOpParamsKey
impl RefUnwindSafe for FusedOpParamsKey
impl Send for FusedOpParamsKey
impl Sync for FusedOpParamsKey
impl Unpin for FusedOpParamsKey
impl UnsafeUnpin for FusedOpParamsKey
impl UnwindSafe for FusedOpParamsKey
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.