Struct divans::slice_util::AllocatedMemoryPrefix [−][src]
pub struct AllocatedMemoryPrefix<T, AllocT: Allocator<T>>(pub AllocT::AllocatedMemory, pub u32);
Methods
impl<T, AllocT: Allocator<T>> AllocatedMemoryPrefix<T, AllocT>
[src]
impl<T, AllocT: Allocator<T>> AllocatedMemoryPrefix<T, AllocT>
pub fn mem(&mut self) -> &mut AllocT::AllocatedMemory
[src]
pub fn mem(&mut self) -> &mut AllocT::AllocatedMemory
pub fn components(self) -> (AllocT::AllocatedMemory, usize)
[src]
pub fn components(self) -> (AllocT::AllocatedMemory, usize)
pub fn max_len(&self) -> usize
[src]
pub fn max_len(&self) -> usize
impl<T, AllocT: Allocator<T>> AllocatedMemoryPrefix<T, AllocT>
[src]
impl<T, AllocT: Allocator<T>> AllocatedMemoryPrefix<T, AllocT>
pub fn new(m8: &mut AllocT, len: usize) -> Self
[src]
pub fn new(m8: &mut AllocT, len: usize) -> Self
pub fn realloc(mem: AllocT::AllocatedMemory, len: usize) -> Self
[src]
pub fn realloc(mem: AllocT::AllocatedMemory, len: usize) -> Self
Trait Implementations
impl<T, AllocT: Allocator<T>> Index<usize> for AllocatedMemoryPrefix<T, AllocT>
[src]
impl<T, AllocT: Allocator<T>> Index<usize> for AllocatedMemoryPrefix<T, AllocT>
type Output = T
The returned type after indexing.
ⓘImportant traits for &'a mut Ifn index(&self, index: usize) -> &T
[src]
ⓘImportant traits for &'a mut I
fn index(&self, index: usize) -> &T
Performs the indexing (container[index]
) operation.
impl<T, AllocT: Allocator<T>> IndexMut<usize> for AllocatedMemoryPrefix<T, AllocT>
[src]
impl<T, AllocT: Allocator<T>> IndexMut<usize> for AllocatedMemoryPrefix<T, AllocT>
ⓘImportant traits for &'a mut Ifn index_mut(&mut self, index: usize) -> &mut T
[src]
ⓘImportant traits for &'a mut I
fn index_mut(&mut self, index: usize) -> &mut T
Performs the mutable indexing (container[index]
) operation.
impl<T, AllocT: Allocator<T>> Default for AllocatedMemoryPrefix<T, AllocT>
[src]
impl<T, AllocT: Allocator<T>> Default for AllocatedMemoryPrefix<T, AllocT>
impl<T, AllocT: Allocator<T>> SliceWrapperMut<T> for AllocatedMemoryPrefix<T, AllocT>
[src]
impl<T, AllocT: Allocator<T>> SliceWrapperMut<T> for AllocatedMemoryPrefix<T, AllocT>
impl<T, AllocT: Allocator<T>> SliceWrapper<T> for AllocatedMemoryPrefix<T, AllocT>
[src]
impl<T, AllocT: Allocator<T>> SliceWrapper<T> for AllocatedMemoryPrefix<T, AllocT>
Auto Trait Implementations
impl<T, AllocT> Send for AllocatedMemoryPrefix<T, AllocT> where
<AllocT as Allocator<T>>::AllocatedMemory: Send,
impl<T, AllocT> Send for AllocatedMemoryPrefix<T, AllocT> where
<AllocT as Allocator<T>>::AllocatedMemory: Send,
impl<T, AllocT> Sync for AllocatedMemoryPrefix<T, AllocT> where
<AllocT as Allocator<T>>::AllocatedMemory: Sync,
impl<T, AllocT> Sync for AllocatedMemoryPrefix<T, AllocT> where
<AllocT as Allocator<T>>::AllocatedMemory: Sync,