pub enum DispatchComputePipeline {
Core(Arc<CoreComputePipeline>),
Custom(DynComputePipeline),
}
Variants§
Core(Arc<CoreComputePipeline>)
Custom(DynComputePipeline)
Implementations§
Source§impl DispatchComputePipeline
impl DispatchComputePipeline
pub fn as_core(&self) -> &CoreComputePipeline
pub fn as_core_opt(&self) -> Option<&CoreComputePipeline>
pub fn as_custom<T: ComputePipelineInterface>(&self) -> Option<&T>
pub fn custom<T: ComputePipelineInterface>(t: T) -> Self
Trait Implementations§
Source§impl Clone for DispatchComputePipeline
impl Clone for DispatchComputePipeline
Source§fn clone(&self) -> DispatchComputePipeline
fn clone(&self) -> DispatchComputePipeline
Returns a copy of the value. Read more
1.0.0 · 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 DispatchComputePipeline
impl Debug for DispatchComputePipeline
Source§impl Deref for DispatchComputePipeline
impl Deref for DispatchComputePipeline
Source§impl From<CoreComputePipeline> for DispatchComputePipeline
impl From<CoreComputePipeline> for DispatchComputePipeline
Source§fn from(value: CoreComputePipeline) -> Self
fn from(value: CoreComputePipeline) -> Self
Converts to this type from the input type.
Source§impl Hash for DispatchComputePipeline
impl Hash for DispatchComputePipeline
Source§impl Ord for DispatchComputePipeline
impl Ord for DispatchComputePipeline
Source§fn cmp(&self, other: &DispatchComputePipeline) -> Ordering
fn cmp(&self, other: &DispatchComputePipeline) -> Ordering
1.21.0 · 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 DispatchComputePipeline
impl PartialEq for DispatchComputePipeline
Source§impl PartialOrd for DispatchComputePipeline
impl PartialOrd for DispatchComputePipeline
impl Eq for DispatchComputePipeline
impl StructuralPartialEq for DispatchComputePipeline
Auto Trait Implementations§
impl Freeze for DispatchComputePipeline
impl !RefUnwindSafe for DispatchComputePipeline
impl Send for DispatchComputePipeline
impl Sync for DispatchComputePipeline
impl Unpin for DispatchComputePipeline
impl !UnwindSafe for DispatchComputePipeline
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more