Struct solana_perf::cuda_runtime::PinnedVec[][src]

pub struct PinnedVec<T: Default + Clone + Sized> { /* fields omitted */ }

Implementations

impl<T: Clone + Default + Sized> PinnedVec<T>[src]

pub fn iter(&self) -> PinnedIter<'_, T>

Notable traits for PinnedIter<'a, T>

impl<'a, T: Clone + Default + Sized> Iterator for PinnedIter<'a, T> type Item = &'a T;
[src]

pub fn iter_mut(&mut self) -> PinnedIterMut<'_, T>

Notable traits for PinnedIterMut<'a, T>

impl<'a, T: Clone + Default + Sized> Iterator for PinnedIterMut<'a, T> type Item = &'a mut T;
[src]

pub fn capacity(&self) -> usize[src]

impl<T: Clone + Default + Sized> PinnedVec<T>[src]

pub fn reserve_and_pin(&mut self, size: usize)[src]

pub fn set_pinnable(&mut self)[src]

pub fn copy_from_slice(&mut self, data: &[T]) where
    T: Copy
[src]

pub fn from_vec(source: Vec<T>) -> Self[src]

pub fn with_capacity(capacity: usize) -> Self[src]

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

pub fn as_ptr(&self) -> *const T[src]

pub fn as_mut_ptr(&mut self) -> *mut T[src]

pub fn push(&mut self, x: T)[src]

pub fn truncate(&mut self, size: usize)[src]

pub fn resize(&mut self, size: usize, elem: T)[src]

pub fn append(&mut self, other: &mut Vec<T>)[src]

pub fn append_pinned(&mut self, other: &mut Self)[src]

pub fn shuffle<R: Rng>(&mut self, rng: &mut R)[src]

Trait Implementations

impl<T: Clone + Default + Sized> Clone for PinnedVec<T>[src]

fn clone(&self) -> Self[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T: Debug + Default + Clone + Sized> Debug for PinnedVec<T>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<T: Clone + Default + Sized> Default for PinnedVec<T>[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl<T: Sized + Default + Clone> Drop for PinnedVec<T>[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

impl<T: Clone + Default + Sized, I: SliceIndex<[T]>> Index<I> for PinnedVec<T>[src]

type Output = I::Output

The returned type after indexing.

fn index(&self, index: I) -> &Self::Output[src]

Performs the indexing (container[index]) operation. Read more

impl<T: Clone + Default + Sized, I: SliceIndex<[T]>> IndexMut<I> for PinnedVec<T>[src]

fn index_mut(&mut self, index: I) -> &mut Self::Output[src]

Performs the mutable indexing (container[index]) operation. Read more

impl<T: Clone + Default + Sized> IntoIterator for PinnedVec<T>[src]

type Item = T

The type of the elements being iterated over.

type IntoIter = IntoIter<T>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Creates an iterator from a value. Read more

impl<'a, T: Clone + Default + Sized> IntoIterator for &'a mut PinnedVec<T>[src]

type Item = &'a T

The type of the elements being iterated over.

type IntoIter = PinnedIter<'a, T>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Creates an iterator from a value. Read more

impl<'a, T: Clone + Default + Sized> IntoIterator for &'a PinnedVec<T>[src]

type Item = &'a T

The type of the elements being iterated over.

type IntoIter = PinnedIter<'a, T>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Creates an iterator from a value. Read more

impl<'a, T: Clone + Send + Sync + Default + Sized> IntoParallelIterator for &'a PinnedVec<T>[src]

type Iter = Iter<'a, T>

The parallel iterator type that will be created.

type Item = &'a T

The type of item that the parallel iterator will produce.

fn into_par_iter(self) -> Self::Iter[src]

Converts self into a parallel iterator. Read more

impl<'a, T: Clone + Send + Sync + Default + Sized> IntoParallelIterator for &'a mut PinnedVec<T>[src]

type Iter = IterMut<'a, T>

The parallel iterator type that will be created.

type Item = &'a mut T

The type of item that the parallel iterator will produce.

fn into_par_iter(self) -> Self::Iter[src]

Converts self into a parallel iterator. Read more

impl<T: Clone + Default + Send + Sized> IntoParallelIterator for PinnedVec<T>[src]

type Item = T

The type of item that the parallel iterator will produce.

type Iter = IntoIter<T>

The parallel iterator type that will be created.

fn into_par_iter(self) -> Self::Iter[src]

Converts self into a parallel iterator. Read more

impl<T: Default + Clone + Sized> Reset for PinnedVec<T>[src]

fn reset(&mut self)[src]

fn warm(&mut self, size_hint: usize)[src]

fn set_recycler(&mut self, recycler: Weak<RecyclerX<Self>>)[src]

fn unset_recycler(&mut self)[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for PinnedVec<T> where
    T: RefUnwindSafe

impl<T> Send for PinnedVec<T> where
    T: Send

impl<T> Sync for PinnedVec<T> where
    T: Send + Sync

impl<T> Unpin for PinnedVec<T> where
    T: Unpin

impl<T> UnwindSafe for PinnedVec<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> AbiExample for T

pub default fn example() -> T

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<'data, I> IntoParallelRefIterator<'data> for I where
    I: 'data + ?Sized,
    &'data I: IntoParallelIterator
[src]

type Iter = <&'data I as IntoParallelIterator>::Iter

The type of the parallel iterator that will be returned.

type Item = <&'data I as IntoParallelIterator>::Item

The type of item that the parallel iterator will produce. This will typically be an &'data T reference type. Read more

pub fn par_iter(&'data self) -> <I as IntoParallelRefIterator<'data>>::Iter[src]

Converts self into a parallel iterator. Read more

impl<'data, I> IntoParallelRefMutIterator<'data> for I where
    I: 'data + ?Sized,
    &'data mut I: IntoParallelIterator
[src]

type Iter = <&'data mut I as IntoParallelIterator>::Iter

The type of iterator that will be created.

type Item = <&'data mut I as IntoParallelIterator>::Item

The type of item that will be produced; this is typically an &'data mut T reference. Read more

pub fn par_iter_mut(
    &'data mut self
) -> <I as IntoParallelRefMutIterator<'data>>::Iter
[src]

Creates the parallel iterator from self. Read more

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V