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>

Object Safety§

This trait is not object safe.

Implementors§

source§

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

§

type Op = Cast<A, IT, OT>

source§

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

§

type Op = Cast<A, IT, OT>