pub struct MemoryPooledVector { /* private fields */ }Expand description
Vector that uses pooled memory when available
Implementations§
Source§impl MemoryPooledVector
impl MemoryPooledVector
Sourcepub fn with_pooled_memory(size: usize, _memory: PooledMemory) -> Self
pub fn with_pooled_memory(size: usize, _memory: PooledMemory) -> Self
Create a pooled vector with pre-allocated memory
Sourcepub fn as_array_mut(&mut self) -> &mut Array1<f32>
pub fn as_array_mut(&mut self) -> &mut Array1<f32>
Get mutable access to the underlying array
Sourcepub fn into_array(self) -> Array1<f32>
pub fn into_array(self) -> Array1<f32>
Convert to owned Array1
Auto Trait Implementations§
impl Freeze for MemoryPooledVector
impl RefUnwindSafe for MemoryPooledVector
impl Send for MemoryPooledVector
impl Sync for MemoryPooledVector
impl Unpin for MemoryPooledVector
impl UnwindSafe for MemoryPooledVector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more