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.
pub fn shuffle<R: Rng>(&mut self, rng: &mut R)
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for PinnedVec<T>where
T: Deserialize<'de> + Default + Default + Clone + Sized,
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>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more