Struct divans::slice_util::AllocatedMemoryRange [−][src]
pub struct AllocatedMemoryRange<T, AllocT: Allocator<T>>(pub AllocT::AllocatedMemory, pub Range<usize>);
Methods
impl<T, AllocT: Allocator<T>> AllocatedMemoryRange<T, AllocT>
[src]
impl<T, AllocT: Allocator<T>> AllocatedMemoryRange<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, Range<usize>)
[src]
pub fn components(self) -> (AllocT::AllocatedMemory, Range<usize>)
impl<T, AllocT: Allocator<T>> AllocatedMemoryRange<T, AllocT>
[src]
impl<T, AllocT: Allocator<T>> AllocatedMemoryRange<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, range: Range<usize>) -> Self
[src]
pub fn realloc(mem: AllocT::AllocatedMemory, range: Range<usize>) -> Self
Trait Implementations
impl<T, AllocT: Allocator<T>> Index<usize> for AllocatedMemoryRange<T, AllocT>
[src]
impl<T, AllocT: Allocator<T>> Index<usize> for AllocatedMemoryRange<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 AllocatedMemoryRange<T, AllocT>
[src]
impl<T, AllocT: Allocator<T>> IndexMut<usize> for AllocatedMemoryRange<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 AllocatedMemoryRange<T, AllocT>
[src]
impl<T, AllocT: Allocator<T>> Default for AllocatedMemoryRange<T, AllocT>
impl<T, AllocT: Allocator<T>> SliceWrapperMut<T> for AllocatedMemoryRange<T, AllocT>
[src]
impl<T, AllocT: Allocator<T>> SliceWrapperMut<T> for AllocatedMemoryRange<T, AllocT>
impl<T, AllocT: Allocator<T>> SliceWrapper<T> for AllocatedMemoryRange<T, AllocT>
[src]
impl<T, AllocT: Allocator<T>> SliceWrapper<T> for AllocatedMemoryRange<T, AllocT>
Auto Trait Implementations
impl<T, AllocT> Send for AllocatedMemoryRange<T, AllocT> where
<AllocT as Allocator<T>>::AllocatedMemory: Send,
impl<T, AllocT> Send for AllocatedMemoryRange<T, AllocT> where
<AllocT as Allocator<T>>::AllocatedMemory: Send,
impl<T, AllocT> Sync for AllocatedMemoryRange<T, AllocT> where
<AllocT as Allocator<T>>::AllocatedMemory: Sync,
impl<T, AllocT> Sync for AllocatedMemoryRange<T, AllocT> where
<AllocT as Allocator<T>>::AllocatedMemory: Sync,