Struct rust_cuda::utils::shared::ThreadBlockSharedSlice

source ·
pub struct ThreadBlockSharedSlice<T: 'static + TypeGraphLayout> { /* private fields */ }

Implementations§

source§

impl<T: 'static + TypeGraphLayout> ThreadBlockSharedSlice<T>

source

pub fn new_uninit_with_len(len: usize) -> Self

Available on crate feature host only.
source

pub fn with_len(self, len: usize) -> Self

Available on crate feature host only.
source

pub fn with_len_mut(&mut self, len: usize) -> &mut Self

Available on crate feature host only.
source

pub fn len(&self) -> usize

source

pub fn is_empty(&self) -> bool

source

pub fn layout(&self) -> Layout

source

pub const fn as_mut_ptr(&self) -> *mut T

Available on crate feature device only.
source

pub const fn as_mut_slice_ptr(&self) -> *mut [T]

Available on crate feature device only.
source

pub unsafe fn index_mut_unchecked<I: SliceIndex<[T]>>( &self, index: I, ) -> *mut <I as SliceIndex<[T]>>::Output

Available on crate feature device only.
§Safety

The provided index must not be out of bounds.

Trait Implementations§

source§

impl<'a, T: 'static + PortableBitSemantics + TypeGraphLayout> CudaKernelParameter for &'a mut ThreadBlockSharedSlice<T>

§

type AsyncHostType<'stream, 'b> = &'b mut ThreadBlockSharedSlice<T> where Self: 'b

Available on crate feature host only.
§

type DeviceType<'b> = &'b mut ThreadBlockSharedSlice<T> where Self: 'b

Available on crate feature device only.
§

type SyncHostType = &'a mut ThreadBlockSharedSlice<T>

Available on crate feature host only.
source§

fn with_new_async<'stream, 'b, O, E: From<CudaError>>( param: Self::SyncHostType, _stream: Stream<'stream>, inner: impl FnOnce(Self::AsyncHostType<'stream, 'b>) -> Result<O, E>, ) -> Result<O, E>
where Self: 'b,

Available on crate feature host only.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> ExtractDiscriminant for T

§

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
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Erased for T