pub enum ComplexUsage {
Core,
Compare,
Math,
}Expand description
Complex capability families allowed for a complex storage type.
Variants§
Core
Core ML-centric complex functionality: arithmetic, negation, conjugation, real/imag.
Compare
Equality and inequality comparisons.
Math
Higher-level math functions such as exp/log/sin/cos/sqrt/tanh/powf and abs.
Trait Implementations§
Source§impl<O> BitAnd<O> for ComplexUsage
impl<O> BitAnd<O> for ComplexUsage
Source§impl<O> BitOr<O> for ComplexUsage
impl<O> BitOr<O> for ComplexUsage
Source§impl<O> BitXor<O> for ComplexUsage
impl<O> BitXor<O> for ComplexUsage
Source§impl Clone for ComplexUsage
impl Clone for ComplexUsage
Source§fn clone(&self) -> ComplexUsage
fn clone(&self) -> ComplexUsage
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 moreimpl Copy for ComplexUsage
Source§impl Debug for ComplexUsage
impl Debug for ComplexUsage
impl EnumSetType for ComplexUsage
impl Eq for ComplexUsage
Source§impl Hash for ComplexUsage
impl Hash for ComplexUsage
Source§impl Not for ComplexUsage
impl Not for ComplexUsage
Source§impl Ord for ComplexUsage
impl Ord for ComplexUsage
Source§fn cmp(&self, other: &ComplexUsage) -> Ordering
fn cmp(&self, other: &ComplexUsage) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ComplexUsage
impl PartialEq for ComplexUsage
Source§impl PartialEq<EnumSet<ComplexUsage>> for ComplexUsage
impl PartialEq<EnumSet<ComplexUsage>> for ComplexUsage
Source§impl PartialOrd for ComplexUsage
impl PartialOrd for ComplexUsage
Source§impl<O> Sub<O> for ComplexUsage
impl<O> Sub<O> for ComplexUsage
Auto Trait Implementations§
impl Freeze for ComplexUsage
impl RefUnwindSafe for ComplexUsage
impl Send for ComplexUsage
impl Sync for ComplexUsage
impl Unpin for ComplexUsage
impl UnsafeUnpin for ComplexUsage
impl UnwindSafe for ComplexUsage
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<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
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<T> CompilationArg for T
impl<T> CompilationArg for T
Source§fn dynamic_cast<Arg>(&self) -> Argwhere
Arg: CompilationArg,
fn dynamic_cast<Arg>(&self) -> Argwhere
Arg: CompilationArg,
Compilation args should be the same even with different element types. However, it isn’t
possible to enforce it with the type system. So, we make the compilation args serializable
and dynamically cast them. Read more
impl<T> CubeComptime for T
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.