Trait tc_collection::tensor::sparse::SparseInstance
source · pub trait SparseInstance: TensorInstance + Debug {
type CoordBlock: Access<u64>;
type ValueBlock: Access<Self::DType>;
type Blocks: Stream<Item = Result<(Array<u64, Self::CoordBlock>, Array<Self::DType, Self::ValueBlock>), TCError>> + Send;
type DType: CType + DType;
// Required methods
fn blocks<'async_trait>(
self,
txn_id: TxnId,
range: Range,
order: Axes
) -> Pin<Box<dyn Future<Output = Result<Self::Blocks, TCError>> + Send + 'async_trait>>
where Self: 'async_trait;
fn elements<'async_trait>(
self,
txn_id: TxnId,
range: Range,
order: Axes
) -> Pin<Box<dyn Future<Output = Result<Elements<Self::DType>, TCError>> + Send + 'async_trait>>
where Self: 'async_trait;
fn read_value<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
coord: Coord
) -> Pin<Box<dyn Future<Output = Result<Self::DType, TCError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn filled_at<'async_trait>(
self,
txn_id: TxnId,
range: Range,
order: Axes,
axes: Axes
) -> Pin<Box<dyn Future<Output = TCResult<TCBoxTryStream<'static, Coord>>> + Send + 'async_trait>>
where Self: Sized + Send + 'async_trait { ... }
}
Required Associated Types§
type CoordBlock: Access<u64>
type ValueBlock: Access<Self::DType>
type Blocks: Stream<Item = Result<(Array<u64, Self::CoordBlock>, Array<Self::DType, Self::ValueBlock>), TCError>> + Send
type DType: CType + DType
Required Methods§
fn blocks<'async_trait>(
self,
txn_id: TxnId,
range: Range,
order: Axes
) -> Pin<Box<dyn Future<Output = Result<Self::Blocks, TCError>> + Send + 'async_trait>>where
Self: 'async_trait,
fn elements<'async_trait>(
self,
txn_id: TxnId,
range: Range,
order: Axes
) -> Pin<Box<dyn Future<Output = Result<Elements<Self::DType>, TCError>> + Send + 'async_trait>>where
Self: 'async_trait,
fn read_value<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
coord: Coord
) -> Pin<Box<dyn Future<Output = Result<Self::DType, TCError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
fn filled_at<'async_trait>( self, txn_id: TxnId, range: Range, order: Axes, axes: Axes ) -> Pin<Box<dyn Future<Output = TCResult<TCBoxTryStream<'static, Coord>>> + Send + 'async_trait>>
Object Safety§
This trait is not object safe.