pub trait ComplexBuffer: Send + Sync {
// Required methods
fn len(&self) -> usize;
fn location(&self) -> MemoryLocation;
fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
Type-erased contiguous buffer of Complex64 values owned by a resident backend.
Required Methods§
Sourcefn location(&self) -> MemoryLocation
fn location(&self) -> MemoryLocation
Returns the buffer’s memory domain.
Sourcefn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Exposes mutable type erasure for backend-specific downcasting.