Trait ElementwiseCast

Source
pub trait ElementwiseCast<A, IT, OT>: PlatformInstance
where A: Access<IT>, IT: CType, OT: CType,
{ type Op: ReadOp<Self, OT>; // Required method fn cast(self, access: A) -> Result<AccessOp<Self::Op, Self>, Error>; }

Required Associated Types§

Source

type Op: ReadOp<Self, OT>

Required Methods§

Source

fn cast(self, access: A) -> Result<AccessOp<Self::Op, Self>, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<A: Access<IT>, IT: CType, OT: CType> ElementwiseCast<A, IT, OT> for Platform

Source§

type Op = Cast<A, IT, OT>

Source§

impl<A: Access<IT>, IT: CType, OT: CType> ElementwiseCast<A, IT, OT> for Host

Source§

type Op = Cast<A, IT, OT>