Trait coaster::device::MemorySync  
source · pub trait MemorySync {
    // Required methods
    fn sync_in(
        &self,
        my_memory: &mut dyn Any,
        src_device: &dyn Any,
        src_memory: &dyn Any
    ) -> Result<(), Error>;
    fn sync_out(
        &self,
        my_memory: &dyn Any,
        dst_device: &dyn Any,
        dst_memory: &mut dyn Any
    ) -> Result<(), Error>;
}Expand description
This trait should be implemented for Device.
Use of Any everywhere is ugly, but it looks like there is no other way
to do it if we want to extract CUDA stuff into its own crate completely,
so that base crate knows nothing about it at all.