Trait rust_cuda::lend::RustToCudaProxy

source ·
pub trait RustToCudaProxy<T>: RustToCuda {
    // Required methods
    fn from_ref(val: &T) -> &Self;
    fn from_mut(val: &mut T) -> &mut Self;
    fn into(self) -> T;
}

Required Methods§

source

fn from_ref(val: &T) -> &Self

source

fn from_mut(val: &mut T) -> &mut Self

source

fn into(self) -> T

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: Copy + PortableBitSemantics + TypeGraphLayout> RustToCudaProxy<Option<T>> for Option<RustToCudaWithPortableBitCopySemantics<T>>

source§

fn from_ref(val: &Option<T>) -> &Self

source§

fn from_mut(val: &mut Option<T>) -> &mut Self

source§

fn into(self) -> Option<T>

Implementors§