Trait tc_tensor::DenseWrite
source · pub trait DenseWrite<FD, FS, D, T>: DenseAccess<FD, FS, D, T>where
FD: File<Key = u64, Block = Array, Inner = D::Inner>,
FS: File<Key = NodeId, Block = Node>,
D: Dir,
T: Transaction<D>,
D::Write: DirCreateFile<FD>,{
fn write<'life0, 'async_trait, V>(
&'life0 self,
txn: Self::Txn,
bounds: Bounds,
value: V
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where
V: 'async_trait + DenseAccess<FD, FS, D, T>,
Self: 'async_trait,
'life0: 'async_trait;
fn write_value<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
bounds: Bounds,
number: Number
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Common DenseTensor
access methods
Required Methods§
sourcefn write<'life0, 'async_trait, V>(
&'life0 self,
txn: Self::Txn,
bounds: Bounds,
value: V
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>where
V: 'async_trait + DenseAccess<FD, FS, D, T>,
Self: 'async_trait,
'life0: 'async_trait,
fn write<'life0, 'async_trait, V>(
&'life0 self,
txn: Self::Txn,
bounds: Bounds,
value: V
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>where
V: 'async_trait + DenseAccess<FD, FS, D, T>,
Self: 'async_trait,
'life0: 'async_trait,
Overwrite this accessor’s contents with those of the given accessor.