pub struct CoreCapabilityBundleBuilder { /* private fields */ }Expand description
Builder for direct core capability slots.
Setters replace any previous value for the same slot and therefore are infallible.
§Examples
use tenferro_runtime::CoreCapabilityBundleBuilder;
assert!(CoreCapabilityBundleBuilder::new().build().layout().is_none());Implementations§
Source§impl CoreCapabilityBundleBuilder
impl CoreCapabilityBundleBuilder
Sourcepub fn elementwise(
&mut self,
capability: Arc<dyn ElementwiseRuntime>,
) -> &mut Self
pub fn elementwise( &mut self, capability: Arc<dyn ElementwiseRuntime>, ) -> &mut Self
Set or replace the elementwise slot.
Sourcepub fn reduction(&mut self, capability: Arc<dyn ReductionRuntime>) -> &mut Self
pub fn reduction(&mut self, capability: Arc<dyn ReductionRuntime>) -> &mut Self
Set or replace the reduction slot.
Sourcepub fn indexing(&mut self, capability: Arc<dyn IndexingRuntime>) -> &mut Self
pub fn indexing(&mut self, capability: Arc<dyn IndexingRuntime>) -> &mut Self
Set or replace the indexing slot.
Sourcepub fn dot_general(
&mut self,
capability: Arc<dyn DotGeneralPreparation>,
) -> &mut Self
pub fn dot_general( &mut self, capability: Arc<dyn DotGeneralPreparation>, ) -> &mut Self
Set or replace the dot-general preparation slot.
Sourcepub fn layout(&mut self, capability: Arc<dyn LayoutRuntime>) -> &mut Self
pub fn layout(&mut self, capability: Arc<dyn LayoutRuntime>) -> &mut Self
Set or replace the layout slot.
Sourcepub fn build(self) -> CoreCapabilityBundle
pub fn build(self) -> CoreCapabilityBundle
Build an immutable capability bundle.
Trait Implementations§
Source§impl Clone for CoreCapabilityBundleBuilder
impl Clone for CoreCapabilityBundleBuilder
Source§fn clone(&self) -> CoreCapabilityBundleBuilder
fn clone(&self) -> CoreCapabilityBundleBuilder
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 CoreCapabilityBundleBuilder
impl Debug for CoreCapabilityBundleBuilder
Source§impl Default for CoreCapabilityBundleBuilder
impl Default for CoreCapabilityBundleBuilder
Source§fn default() -> CoreCapabilityBundleBuilder
fn default() -> CoreCapabilityBundleBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CoreCapabilityBundleBuilder
impl !RefUnwindSafe for CoreCapabilityBundleBuilder
impl Send for CoreCapabilityBundleBuilder
impl Sync for CoreCapabilityBundleBuilder
impl Unpin for CoreCapabilityBundleBuilder
impl UnsafeUnpin for CoreCapabilityBundleBuilder
impl !UnwindSafe for CoreCapabilityBundleBuilder
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