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>
impl<T: Clone + Default + Sized> PinnedVec<T>
pub fn reserve(&mut self, size: usize)
pub fn reserve_and_pin(&mut self, size: usize)
pub fn set_pinnable(&mut self)
pub fn copy_from_slice(&mut self, data: &[T])where T: Copy,
pub fn from_vec(source: Vec<T>) -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn as_ptr(&self) -> *const T
pub fn as_mut_ptr(&mut self) -> *mut T
pub fn push(&mut self, x: T)
pub fn truncate(&mut self, size: usize)
pub fn resize(&mut self, size: usize, elem: T)
pub fn append(&mut self, other: &mut Vec<T>)
pub fn append_pinned(&mut self, other: &mut Self)
sourcepub unsafe fn set_len(&mut self, size: usize)
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 tocapacity()
.- The elements at
old_len..new_len
must be initialized.