pub struct CastPlan<TIn: Element, TOut: Element> { /* private fields */ }Expand description
Cast plan.
TIn is the input element type. TOut is the output element type.
Implementations§
Source§impl<TIn: Element, TOut: Element> CastPlan<TIn, TOut>
impl<TIn: Element, TOut: Element> CastPlan<TIn, TOut>
Sourcepub fn select(
_stream: &Stream,
desc: &CastDescriptor,
_pref: PlanPreference,
) -> Result<Self>
pub fn select( _stream: &Stream, desc: &CastDescriptor, _pref: PlanPreference, ) -> Result<Self>
Pick a kernel for desc.
Sourcepub fn can_implement(&self, args: &CastArgs<'_, TIn, TOut>) -> Result<()>
pub fn can_implement(&self, args: &CastArgs<'_, TIn, TOut>) -> Result<()>
Validate args.
Sourcepub fn workspace_size(&self) -> usize
pub fn workspace_size(&self) -> usize
Workspace size in bytes. Always 0.
Sourcepub fn precision_guarantee(&self) -> PrecisionGuarantee
pub fn precision_guarantee(&self) -> PrecisionGuarantee
Numerical guarantees for this plan’s kernel.
Auto Trait Implementations§
impl<TIn, TOut> Freeze for CastPlan<TIn, TOut>
impl<TIn, TOut> RefUnwindSafe for CastPlan<TIn, TOut>where
TIn: RefUnwindSafe,
TOut: RefUnwindSafe,
impl<TIn, TOut> Send for CastPlan<TIn, TOut>
impl<TIn, TOut> Sync for CastPlan<TIn, TOut>
impl<TIn, TOut> Unpin for CastPlan<TIn, TOut>
impl<TIn, TOut> UnsafeUnpin for CastPlan<TIn, TOut>
impl<TIn, TOut> UnwindSafe for CastPlan<TIn, TOut>where
TIn: UnwindSafe,
TOut: UnwindSafe,
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