pub struct CachelineEfVec<E = Vec<CachelineEf>> { /* private fields */ }Expand description
A vector of CachelineEf.
Implementations§
Source§impl CachelineEfVec<Vec<CachelineEf>>
impl CachelineEfVec<Vec<CachelineEf>>
Source§impl<E: AsRef<[CachelineEf]>> CachelineEfVec<E>
impl<E: AsRef<[CachelineEf]>> CachelineEfVec<E>
Sourcepub unsafe fn index_unchecked(&self, index: usize) -> u64
pub unsafe fn index_unchecked(&self, index: usize) -> u64
Get the value at the given index in the vector, and do not check bounds.
Sourcepub fn size_in_bytes(&self) -> usize
pub fn size_in_bytes(&self) -> usize
The size of the underlying vector, in bytes.
Trait Implementations§
Source§impl<E: Clone> Clone for CachelineEfVec<E>
impl<E: Clone> Clone for CachelineEfVec<E>
Source§fn clone(&self) -> CachelineEfVec<E>
fn clone(&self) -> CachelineEfVec<E>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E> CopyType for CachelineEfVec<E>
impl<E> CopyType for CachelineEfVec<E>
Source§impl<E: Default> Default for CachelineEfVec<E>
impl<E: Default> Default for CachelineEfVec<E>
Source§fn default() -> CachelineEfVec<E>
fn default() -> CachelineEfVec<E>
Returns the “default value” for a type. Read more
Source§impl<E> MemDbgImpl for CachelineEfVec<E>
impl<E> MemDbgImpl for CachelineEfVec<E>
fn _mem_dbg_rec_on( &self, _memdbg_writer: &mut impl Write, _memdbg_total_size: usize, _memdbg_max_depth: usize, _memdbg_prefix: &mut String, _memdbg_is_last: bool, _memdbg_flags: DbgFlags, ) -> Result
fn _mem_dbg_depth_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, field_name: Option<&str>, is_last: bool, padded_size: usize, flags: DbgFlags, ) -> Result<(), Error>
Auto Trait Implementations§
impl<E> Freeze for CachelineEfVec<E>where
E: Freeze,
impl<E> RefUnwindSafe for CachelineEfVec<E>where
E: RefUnwindSafe,
impl<E> Send for CachelineEfVec<E>where
E: Send,
impl<E> Sync for CachelineEfVec<E>where
E: Sync,
impl<E> Unpin for CachelineEfVec<E>where
E: Unpin,
impl<E> UnwindSafe for CachelineEfVec<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T> MemDbg for Twhere
T: MemDbgImpl,
impl<T> MemDbg for Twhere
T: MemDbgImpl,
Source§fn mem_dbg(&self, flags: DbgFlags) -> Result<(), Error>
fn mem_dbg(&self, flags: DbgFlags) -> Result<(), Error>
Writes to stderr debug infos about the structure memory usage, expanding
all levels of nested structures.
Source§fn mem_dbg_on(
&self,
writer: &mut impl Write,
flags: DbgFlags,
) -> Result<(), Error>
fn mem_dbg_on( &self, writer: &mut impl Write, flags: DbgFlags, ) -> Result<(), Error>
Writes to a
core::fmt::Write debug infos about the structure memory
usage, expanding all levels of nested structures.Source§fn mem_dbg_depth(&self, max_depth: usize, flags: DbgFlags) -> Result<(), Error>
fn mem_dbg_depth(&self, max_depth: usize, flags: DbgFlags) -> Result<(), Error>
Writes to stderr debug infos about the structure memory usage as
mem_dbg, but expanding only up to max_depth
levels of nested structures.Source§fn mem_dbg_depth_on(
&self,
writer: &mut impl Write,
max_depth: usize,
flags: DbgFlags,
) -> Result<(), Error>
fn mem_dbg_depth_on( &self, writer: &mut impl Write, max_depth: usize, flags: DbgFlags, ) -> Result<(), Error>
Writes to a
core::fmt::Write debug infos about the structure memory
usage as mem_dbg_on, but expanding only up to
max_depth levels of nested structures.Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.