pub struct NdTensorArena { /* private fields */ }Expand description
A store plus per-data-handle bindings, mirroring NumericFeatureBufferArena.
Implementations§
Source§impl NdTensorArena
impl NdTensorArena
pub fn new(store: NdTensorStore) -> NdTensorArena
Sourcepub fn bind_data_handle(
&mut self,
data_handle: u64,
relations: &CoordinatorRelationSet,
representation_id: &RepresentationId,
) -> Result<Vec<NdTensorBinding>, DataError>
pub fn bind_data_handle( &mut self, data_handle: u64, relations: &CoordinatorRelationSet, representation_id: &RepresentationId, ) -> Result<Vec<NdTensorBinding>, DataError>
Binds tensors matching representation_id to data_handle and returns
the bindings.
pub fn release_data_handle(&mut self, data_handle: u64) -> bool
pub fn manifests(&self) -> Result<Vec<NdTensorManifest>, DataError>
pub fn bindings_for_data_handle( &self, data_handle: u64, ) -> Result<Vec<NdTensorBinding>, DataError>
Sourcepub fn project_bound_relations(
&self,
data_handle: u64,
tensor_id: &str,
relations: &CoordinatorRelationSet,
source_id: Option<&SourceId>,
) -> Result<NdTensorBlock, DataError>
pub fn project_bound_relations( &self, data_handle: u64, tensor_id: &str, relations: &CoordinatorRelationSet, source_id: Option<&SourceId>, ) -> Result<NdTensorBlock, DataError>
Projects a bound tensor over relations. Mirrors the feature-buffer
bound-source check: the tensor must be bound to data_handle; an explicit
source_id must be present in the view AND bound; an unscoped export
requires EVERY source present in the view to be bound.
Trait Implementations§
Source§impl Clone for NdTensorArena
impl Clone for NdTensorArena
Source§fn clone(&self) -> NdTensorArena
fn clone(&self) -> NdTensorArena
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NdTensorArena
impl Debug for NdTensorArena
Source§impl Default for NdTensorArena
impl Default for NdTensorArena
Source§fn default() -> NdTensorArena
fn default() -> NdTensorArena
Returns the “default value” for a type. Read more
Source§impl PartialEq for NdTensorArena
impl PartialEq for NdTensorArena
Source§fn eq(&self, other: &NdTensorArena) -> bool
fn eq(&self, other: &NdTensorArena) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NdTensorArena
Auto Trait Implementations§
impl Freeze for NdTensorArena
impl RefUnwindSafe for NdTensorArena
impl Send for NdTensorArena
impl Sync for NdTensorArena
impl Unpin for NdTensorArena
impl UnsafeUnpin for NdTensorArena
impl UnwindSafe for NdTensorArena
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