pub trait MemorySessionExt: SessionExt {
// Provided methods
fn memory(&self) -> SessionGuard<'_, MemorySession> { ... }
fn allocator(&self) -> BufferAllocatorRef { ... }
fn with_allocator(self, allocator: BufferAllocatorRef) -> VortexSession { ... }
}Expand description
Extension methods for session-scoped buffer allocation.
Provided Methods§
Sourcefn memory(&self) -> SessionGuard<'_, MemorySession>
fn memory(&self) -> SessionGuard<'_, MemorySession>
Returns the memory configuration.
Sourcefn allocator(&self) -> BufferAllocatorRef
fn allocator(&self) -> BufferAllocatorRef
Returns the configured buffer allocator.
Sourcefn with_allocator(self, allocator: BufferAllocatorRef) -> VortexSession
fn with_allocator(self, allocator: BufferAllocatorRef) -> VortexSession
Configures the session allocator and returns the session.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".