pub enum PrepareCapability {
Prepared(PreparedOperationPlan),
NeedsSpecialization(SpecializationRequirements),
Unsupported(UnsupportedReason),
}Expand description
Result of asking a provider to prepare an operation.
§Examples
use tenferro_runtime::{CoreCapabilityKind, PrepareCapability, UnsupportedReason};
let capability = PrepareCapability::Unsupported(UnsupportedReason::MissingCapability {
capability: CoreCapabilityKind::Elementwise,
});
assert!(matches!(capability, PrepareCapability::Unsupported { .. }));Variants§
Prepared(PreparedOperationPlan)
Provider returned an immutable prepared operation.
NeedsSpecialization(SpecializationRequirements)
Provider requires a wider specialization before it can prepare.
Unsupported(UnsupportedReason)
Provider does not support this request.
Trait Implementations§
Source§impl Clone for PrepareCapability
impl Clone for PrepareCapability
Source§fn clone(&self) -> PrepareCapability
fn clone(&self) -> PrepareCapability
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 moreAuto Trait Implementations§
impl Freeze for PrepareCapability
impl !RefUnwindSafe for PrepareCapability
impl Send for PrepareCapability
impl Sync for PrepareCapability
impl Unpin for PrepareCapability
impl UnsafeUnpin for PrepareCapability
impl !UnwindSafe for PrepareCapability
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more