#[non_exhaustive]#[repr(u32)]pub enum PlanAttribute {
RequiredWorkspace = 0,
}Expand description
Attributes of a cuTENSOR plan that can be retrieved via sys::cutensorPlanGetAttribute.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RequiredWorkspace = 0
Exact required workspace in bytes needed to execute the plan.
Trait Implementations§
Source§impl Clone for PlanAttribute
impl Clone for PlanAttribute
Source§fn clone(&self) -> PlanAttribute
fn clone(&self) -> PlanAttribute
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 PlanAttribute
Source§impl Debug for PlanAttribute
impl Debug for PlanAttribute
Source§impl Display for PlanAttribute
impl Display for PlanAttribute
impl Eq for PlanAttribute
Source§impl From<PlanAttribute> for u32
impl From<PlanAttribute> for u32
Source§fn from(enum_value: PlanAttribute) -> Self
fn from(enum_value: PlanAttribute) -> Self
Converts to this type from the input type.
Source§impl From<PlanAttribute> for cutensorPlanAttribute_t
impl From<PlanAttribute> for cutensorPlanAttribute_t
Source§fn from(value: PlanAttribute) -> Self
fn from(value: PlanAttribute) -> Self
Converts to this type from the input type.
Source§impl From<cutensorPlanAttribute_t> for PlanAttribute
impl From<cutensorPlanAttribute_t> for PlanAttribute
Source§fn from(value: cutensorPlanAttribute_t) -> Self
fn from(value: cutensorPlanAttribute_t) -> Self
Converts to this type from the input type.
Source§impl Hash for PlanAttribute
impl Hash for PlanAttribute
Source§impl PartialEq for PlanAttribute
impl PartialEq for PlanAttribute
Source§fn eq(&self, other: &PlanAttribute) -> bool
fn eq(&self, other: &PlanAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlanAttribute
Source§impl TryFrom<u32> for PlanAttribute
impl TryFrom<u32> for PlanAttribute
Source§type Error = TryFromPrimitiveError<PlanAttribute>
type Error = TryFromPrimitiveError<PlanAttribute>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PlanAttribute
impl TryFromPrimitive for PlanAttribute
const NAME: &'static str = "PlanAttribute"
type Primitive = u32
type Error = TryFromPrimitiveError<PlanAttribute>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for PlanAttribute
impl RefUnwindSafe for PlanAttribute
impl Send for PlanAttribute
impl Sync for PlanAttribute
impl Unpin for PlanAttribute
impl UnsafeUnpin for PlanAttribute
impl UnwindSafe for PlanAttribute
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