Type Alias solana_perf::sigverify::TxOffset

source ·
pub type TxOffset = PinnedVec<u32>;

Aliased Type§

struct TxOffset { /* private fields */ }

Implementations§

source§

impl<T: Clone + Default + Sized> PinnedVec<T>

source

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

source

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

source

pub fn capacity(&self) -> usize

source§

impl<T: Clone + Default + Sized> PinnedVec<T>

source

pub fn reserve(&mut self, size: usize)

source

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

source

pub fn set_pinnable(&mut self)

source

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

source

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

source

pub fn with_capacity(capacity: usize) -> Self

source

pub fn is_empty(&self) -> bool

source

pub fn len(&self) -> usize

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

pub unsafe fn set_len(&mut self, size: usize)

Forces the length of the vector to new_len.

This is a low-level operation that maintains none of the normal invariants of the type. Normally changing the length of a vector is done using one of the safe operations instead, such as truncate, resize, extend, or clear.

Safety
  • new_len must be less than or equal to capacity().
  • The elements at old_len..new_len must be initialized.
source

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

Trait Implementations§

source§

impl<T: Clone + Default + Sized> Clone for PinnedVec<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

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

source§

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

Formats the value using the given formatter. Read more
source§

impl<T: Default + Default + Clone + Sized> Default for PinnedVec<T>

source§

fn default() -> PinnedVec<T>

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

impl<'de, T> Deserialize<'de> for PinnedVec<T>where T: Deserialize<'de> + Default + Default + Clone + Sized,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

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

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

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

§

type Output = <I as SliceIndex<[T]>>::Output

The returned type after indexing.
source§

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

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

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

source§

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

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

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

source§

fn reset(&mut self)

source§

fn warm(&mut self, size_hint: usize)

source§

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

source§

impl<T> Serialize for PinnedVec<T>where T: Serialize + Default + Clone + Sized,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more