Struct scratchpad::Allocation
[−]
[src]
pub struct Allocation<'marker, T> where
T: ?Sized, { /* fields omitted */ }
Scratchpad Marker
allocation.
Markers implement the Deref
and DerefMut
traits, allowing the data
to be dereferenced explicitly using the unary *
operator (e.g.
*allocation
) or implicitly by the compiler under various circumstances.
An allocation is statically bound to the lifetime of the Marker
from
which it is allocated, ensuring that no dangling references can be left
when the Marker
is dropped.
Methods
impl<'marker, T> Allocation<'marker, T> where
T: Sized,
[src]
T: Sized,
pub fn unwrap(self) -> T
[src]
Moves the value out of the Allocation
.
Note that this is only implemented for Sized
value types.
Examples
use scratchpad::Scratchpad; let x = { let scratchpad = Scratchpad::<[u64; 1], [usize; 1]>::new( [0], [0], ); let marker = scratchpad.mark_front().unwrap(); let allocation = marker.allocate(3.14159).unwrap(); allocation.unwrap() }; // Value was moved out of the allocation, so it can now outlive the // scratchpad in which it was initially created. assert_eq!(x, 3.14159);
impl<'marker, T> Allocation<'marker, T> where
T: ?Sized,
[src]
T: ?Sized,
pub fn concat<U: ?Sized, V>(
self,
other: Allocation<'marker, V>
) -> Result<Allocation<'marker, U>, Error<(Allocation<'marker, T>, Allocation<'marker, V>)>> where
U: ConcatenateSlice,
V: ?Sized,
Allocation<'marker, T>: IntoSliceAllocation<'marker, U>,
Allocation<'marker, V>: IntoSliceAllocation<'marker, U>,
[src]
self,
other: Allocation<'marker, V>
) -> Result<Allocation<'marker, U>, Error<(Allocation<'marker, T>, Allocation<'marker, V>)>> where
U: ConcatenateSlice,
V: ?Sized,
Allocation<'marker, T>: IntoSliceAllocation<'marker, U>,
Allocation<'marker, V>: IntoSliceAllocation<'marker, U>,
Combines this allocation with an allocation immediately following it in memory, returning a single slice allocation.
Allocations must fulfill the following requirements to be able to be concatenated:
- Each allocation must contain an instance, array, or slice of the same type. Any combination of these can be used.
- Allocations must come from markers with the exact same lifetime. Concatenating allocations from different markers is possible, as the matching lifetimes ensure that neither marker can be invalidated before the combined allocation is dropped.
- The first allocation must occupy the memory immediately before the
second allocation. For allocations made from a
MarkerBack
, this means that the allocations need to be specified in the reverse order in which they were made since back markers allocate memory downwards. - No gaps in memory can reside between the allocations, even if that memory is no longer in use.
The first two requirements are checked at compile time, while the last two are checked at runtime.
Examples
use scratchpad::{ErrorKind, Scratchpad}; let scratchpad = Scratchpad::<[i32; 8], [usize; 2]>::static_new(); { let marker = scratchpad.mark_front().unwrap(); let a = marker.allocate(1).unwrap(); let b = marker.allocate([2, 3]).unwrap(); let c = marker.allocate_array_with(3, |index| index as i32 + 4) .unwrap(); // `a` and `c` cannot be concatenated since they are not adjacent. let error = a.concat(c).unwrap_err(); assert_eq!(error.kind(), ErrorKind::NotAdjacent); let (a, c) = error.unwrap_args(); // `a`, `b`, and `c` can be concatenated as long as adjacent // allocations are concatenated first. let abc = a.concat(b.concat(c).unwrap()).unwrap(); assert_eq!(*abc, [1, 2, 3, 4, 5, 6]); } { let marker = scratchpad.mark_back().unwrap(); let a = marker.allocate([1]).unwrap(); let b = marker.allocate([2, 3]).unwrap(); // When using a back marker, allocations must be concatenated in // the reverse order of creation. let error = a.concat::<[i32], _>(b).unwrap_err(); assert_eq!(error.kind(), ErrorKind::OutOfOrder); let (a, b) = error.unwrap_args(); let ba = b.concat::<[i32], _>(a).unwrap(); assert_eq!(*ba, [2, 3, 1]); } { // Both of the markers created here exist until the end of the // same scope, so their allocations can be concatenated. let marker_a = scratchpad.mark_front().unwrap(); let a = marker_a.allocate(1).unwrap(); let marker_b = scratchpad.mark_front().unwrap(); let b = marker_b.allocate(2).unwrap(); let ab = a.concat(b).unwrap(); assert_eq!(*ab, [1, 2]); }
pub unsafe fn concat_unchecked<U: ?Sized, V>(
self,
other: Allocation<'marker, V>
) -> Allocation<'marker, U> where
U: ConcatenateSlice,
V: ?Sized,
Allocation<'marker, T>: IntoSliceAllocation<'marker, U>,
Allocation<'marker, V>: IntoSliceAllocation<'marker, U>,
[src]
self,
other: Allocation<'marker, V>
) -> Allocation<'marker, U> where
U: ConcatenateSlice,
V: ?Sized,
Allocation<'marker, T>: IntoSliceAllocation<'marker, U>,
Allocation<'marker, V>: IntoSliceAllocation<'marker, U>,
Combines two allocations without performing any runtime checks.
See the safe version, concat()
, for requirements and additional
information.
Safety
This function is unsafe because it does not check whether the
allocations are adjacent in memory or whether they are specified in
the correct order (with self
residing immediately before other
in
memory). Calling this on allocations that do not fit these
requirements can lead to memory corruption, undefined behavior, or
crashes.
Examples
use scratchpad::{ErrorKind, Scratchpad}; let scratchpad = Scratchpad::<[i32; 3], [usize; 1]>::static_new(); let marker = scratchpad.mark_front().unwrap(); let a = marker.allocate(1).unwrap(); let b = marker.allocate([2, 3]).unwrap(); let ab = unsafe { a.concat_unchecked(b) }; assert_eq!(*ab, [1, 2, 3]);
Trait Implementations
impl<'marker, T> Deref for Allocation<'marker, T> where
T: ?Sized,
[src]
T: ?Sized,
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.
impl<'marker, T> DerefMut for Allocation<'marker, T> where
T: ?Sized,
[src]
T: ?Sized,
impl<'marker, T> Drop for Allocation<'marker, T> where
T: ?Sized,
[src]
T: ?Sized,
impl<'marker, T: ?Sized> Debug for Allocation<'marker, T> where
T: Debug,
[src]
T: Debug,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'marker, T: ?Sized> IntoSliceAllocation<'marker, T> for Allocation<'marker, T> where
T: SliceLike,
[src]
T: SliceLike,
fn as_slice_ptr(&self) -> *const T
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut T
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, T> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 1]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 2]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 3]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 4]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 5]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 6]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 7]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 8]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 9]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 10]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 11]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 12]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 13]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 14]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 15]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 16]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 17]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 18]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 19]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 20]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 21]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 22]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 23]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 24]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 25]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 26]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 27]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 28]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 29]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 30]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 31]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 32]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 33]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 34]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 35]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 36]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 37]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 38]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 39]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 40]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 41]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 42]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 43]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 44]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 45]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 46]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 47]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 48]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 49]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 50]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 51]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 52]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 53]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 54]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 55]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 56]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 57]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 58]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 59]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 60]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 61]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 62]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 63]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 64]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 128]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 256]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 512]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 1024]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 2048]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 4096]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 8192]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 16384]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 32768]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 65536]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 131072]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 262144]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 524288]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 1048576]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 2097152]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 4194304]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 8388608]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 16777216]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 33554432]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 67108864]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 134217728]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 268435456]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 536870912]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more
impl<'marker, T> IntoSliceAllocation<'marker, [T]> for Allocation<'marker, [T; 1073741824]> where
T: Sized,
[src]
T: Sized,
fn as_slice_ptr(&self) -> *const [T]
[src]
Returns a pointer to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice_ptr(&mut self) -> *mut [T]
[src]
Returns a mutable pointer to a slice of this allocation's data without altering the allocation. Read more
fn into_slice_allocation(self) -> Allocation<'marker, T>
[src]
Converts this allocation into a slice allocation without altering the allocation data. Read more
fn into_element_slice_allocation(
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
[src]
self
) -> Allocation<'marker, [<T as SliceLike>::Element]>
Converts this allocation into a [[T]
] slice allocation without altering the allocation data. Read more
fn as_slice(&self) -> &T
[src]
Returns a reference to a slice of this allocation's data without altering the allocation. Read more
fn as_mut_slice(&mut self) -> &mut T
[src]
Returns a mutable reference to a slice of this allocation's data without altering the allocation. Read more