Struct rust_cuda::host::HostAndDeviceConstRef
source · pub struct HostAndDeviceConstRef<'a, T: PortableBitSemantics + TypeGraphLayout> { /* private fields */ }
Available on crate feature
host
only.Implementations§
source§impl<'a, T: PortableBitSemantics + TypeGraphLayout> HostAndDeviceConstRef<'a, T>
impl<'a, T: PortableBitSemantics + TypeGraphLayout> HostAndDeviceConstRef<'a, T>
sourcepub fn with_new<O, E: From<CudaError>, F: for<'b> FnOnce(HostAndDeviceConstRef<'b, T>) -> Result<O, E>>(
host_ref: &T,
inner: F,
) -> Result<O, E>
pub fn with_new<O, E: From<CudaError>, F: for<'b> FnOnce(HostAndDeviceConstRef<'b, T>) -> Result<O, E>>( host_ref: &T, inner: F, ) -> Result<O, E>
pub const fn as_ref<'b>(&'b self) -> HostAndDeviceConstRef<'b, T>where
'a: 'b,
pub const fn as_async<'b, 'stream>(
&'b self,
stream: Stream<'stream>,
) -> Async<'b, 'stream, HostAndDeviceConstRef<'b, T>, NoCompletion>where
'a: 'b,
Trait Implementations§
source§impl<'a, T: PortableBitSemantics + TypeGraphLayout> Clone for HostAndDeviceConstRef<'a, T>
impl<'a, T: PortableBitSemantics + TypeGraphLayout> Clone for HostAndDeviceConstRef<'a, T>
impl<'a, T: PortableBitSemantics + TypeGraphLayout> Copy for HostAndDeviceConstRef<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for HostAndDeviceConstRef<'a, T>
impl<'a, T> !PortableBitSemantics for HostAndDeviceConstRef<'a, T>
impl<'a, T> RefUnwindSafe for HostAndDeviceConstRef<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Send for HostAndDeviceConstRef<'a, T>
impl<'a, T> !StackOnly for HostAndDeviceConstRef<'a, T>
impl<'a, T> !Sync for HostAndDeviceConstRef<'a, T>
impl<'a, T> Unpin for HostAndDeviceConstRef<'a, T>
impl<'a, T> UnwindSafe for HostAndDeviceConstRef<'a, T>where
T: RefUnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read more