Trait tc_collection::tensor::sparse::SparseWriteGuard
source · pub trait SparseWriteGuard<T: CType + DType>: Send + Sync {
// Required methods
fn clear<'life0, 'async_trait>(
&'life0 mut self,
txn_id: TxnId,
range: Range
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn overwrite<'life0, 'async_trait, O>(
&'life0 mut self,
txn_id: TxnId,
other: O
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where O: SparseInstance<DType = T> + TensorPermitRead + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn write_value<'life0, 'async_trait>(
&'life0 mut self,
txn_id: TxnId,
coord: Coord,
value: T
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn merge<'life0, 'async_trait, FE>(
&'life0 mut self,
txn_id: TxnId,
filled: SparseFile<FE, T>,
zeros: SparseFile<FE, T>
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where FE: AsType<Node> + ThreadSafe + 'async_trait,
Number: CastInto<T>,
Self: 'async_trait,
'life0: 'async_trait { ... }
}
Required Methods§
fn clear<'life0, 'async_trait>(
&'life0 mut self,
txn_id: TxnId,
range: Range
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn overwrite<'life0, 'async_trait, O>(
&'life0 mut self,
txn_id: TxnId,
other: O
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>where
O: SparseInstance<DType = T> + TensorPermitRead + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn write_value<'life0, 'async_trait>(
&'life0 mut self,
txn_id: TxnId,
coord: Coord,
value: T
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
fn merge<'life0, 'async_trait, FE>(
&'life0 mut self,
txn_id: TxnId,
filled: SparseFile<FE, T>,
zeros: SparseFile<FE, T>
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>where
FE: AsType<Node> + ThreadSafe + 'async_trait,
Number: CastInto<T>,
Self: 'async_trait,
'life0: 'async_trait,
Object Safety§
This trait is not object safe.