pub struct TunerProgramKey(/* private fields */);Expand description
Stable key for per-adapter workgroup autotuning decisions.
Implementations§
Source§impl TunerProgramKey
impl TunerProgramKey
Sourcepub fn from_program(program: &Program, shape: StaticProgramShape) -> Self
pub fn from_program(program: &Program, shape: StaticProgramShape) -> Self
Build a key from the canonical program fingerprint plus static shape.
Trait Implementations§
Source§impl AsRef<str> for TunerProgramKey
impl AsRef<str> for TunerProgramKey
Source§impl Clone for TunerProgramKey
impl Clone for TunerProgramKey
Source§fn clone(&self) -> TunerProgramKey
fn clone(&self) -> TunerProgramKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TunerProgramKey
impl Debug for TunerProgramKey
impl Eq for TunerProgramKey
Source§impl Hash for TunerProgramKey
impl Hash for TunerProgramKey
Source§impl Ord for TunerProgramKey
impl Ord for TunerProgramKey
Source§fn cmp(&self, other: &TunerProgramKey) -> Ordering
fn cmp(&self, other: &TunerProgramKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TunerProgramKey
impl PartialEq for TunerProgramKey
Source§fn eq(&self, other: &TunerProgramKey) -> bool
fn eq(&self, other: &TunerProgramKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TunerProgramKey
impl PartialOrd for TunerProgramKey
impl StructuralPartialEq for TunerProgramKey
Auto Trait Implementations§
impl Freeze for TunerProgramKey
impl RefUnwindSafe for TunerProgramKey
impl Send for TunerProgramKey
impl Sync for TunerProgramKey
impl Unpin for TunerProgramKey
impl UnsafeUnpin for TunerProgramKey
impl UnwindSafe for TunerProgramKey
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.