pub struct CoreCapabilityBundle { /* private fields */ }Expand description
Direct core capability slots captured by a runtime snapshot.
§Examples
use tenferro_runtime::CoreCapabilityBundle;
assert!(CoreCapabilityBundle::builder().build().elementwise().is_none());Implementations§
Source§impl CoreCapabilityBundle
impl CoreCapabilityBundle
Sourcepub fn builder() -> CoreCapabilityBundleBuilder
pub fn builder() -> CoreCapabilityBundleBuilder
Return an empty direct-capability builder.
Sourcepub fn elementwise(&self) -> Option<&Arc<dyn ElementwiseRuntime>>
pub fn elementwise(&self) -> Option<&Arc<dyn ElementwiseRuntime>>
Return the elementwise provider slot.
Sourcepub fn reduction(&self) -> Option<&Arc<dyn ReductionRuntime>>
pub fn reduction(&self) -> Option<&Arc<dyn ReductionRuntime>>
Return the reduction provider slot.
Sourcepub fn indexing(&self) -> Option<&Arc<dyn IndexingRuntime>>
pub fn indexing(&self) -> Option<&Arc<dyn IndexingRuntime>>
Return the indexing provider slot.
Sourcepub fn dot_general(&self) -> Option<&Arc<dyn DotGeneralPreparation>>
pub fn dot_general(&self) -> Option<&Arc<dyn DotGeneralPreparation>>
Return the dot-general preparation slot.
Sourcepub fn layout(&self) -> Option<&Arc<dyn LayoutRuntime>>
pub fn layout(&self) -> Option<&Arc<dyn LayoutRuntime>>
Return the layout provider slot.
Trait Implementations§
Source§impl Clone for CoreCapabilityBundle
impl Clone for CoreCapabilityBundle
Source§fn clone(&self) -> CoreCapabilityBundle
fn clone(&self) -> CoreCapabilityBundle
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 CoreCapabilityBundle
impl Debug for CoreCapabilityBundle
Source§impl Default for CoreCapabilityBundle
impl Default for CoreCapabilityBundle
Source§fn default() -> CoreCapabilityBundle
fn default() -> CoreCapabilityBundle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CoreCapabilityBundle
impl !RefUnwindSafe for CoreCapabilityBundle
impl Send for CoreCapabilityBundle
impl Sync for CoreCapabilityBundle
impl Unpin for CoreCapabilityBundle
impl UnsafeUnpin for CoreCapabilityBundle
impl !UnwindSafe for CoreCapabilityBundle
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