Struct tc_collection::tensor::sparse::SparseCombineLeft
source · pub struct SparseCombineLeft<L, R, T: CType> { /* private fields */ }
Implementations§
source§impl<L, R, T> SparseCombineLeft<L, R, T>
impl<L, R, T> SparseCombineLeft<L, R, T>
pub fn new( left: L, right: R, block_op: fn(_: ArrayAccess<T>, _: ArrayAccess<T>) -> TCResult<ArrayAccess<T>>, value_op: fn(_: T, _: T) -> T ) -> TCResult<Self>
Trait Implementations§
source§impl<L: Clone, R: Clone, T: Clone + CType> Clone for SparseCombineLeft<L, R, T>
impl<L: Clone, R: Clone, T: Clone + CType> Clone for SparseCombineLeft<L, R, T>
source§fn clone(&self) -> SparseCombineLeft<L, R, T>
fn clone(&self) -> SparseCombineLeft<L, R, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Txn, FE, L, R, T> From<SparseCombineLeft<L, R, T>> for SparseAccess<Txn, FE, T>where
FE: ThreadSafe,
L: Into<SparseAccess<Txn, FE, T>>,
R: Into<SparseAccess<Txn, FE, T>>,
T: CType,
impl<Txn, FE, L, R, T> From<SparseCombineLeft<L, R, T>> for SparseAccess<Txn, FE, T>where
FE: ThreadSafe,
L: Into<SparseAccess<Txn, FE, T>>,
R: Into<SparseAccess<Txn, FE, T>>,
T: CType,
source§fn from(combine: SparseCombineLeft<L, R, T>) -> Self
fn from(combine: SparseCombineLeft<L, R, T>) -> Self
Converts to this type from the input type.
source§impl<L, R, T> SparseInstance for SparseCombineLeft<L, R, T>where
L: SparseInstance<DType = T>,
R: SparseInstance<DType = T>,
T: CType + DType + PartialEq + Debug,
Accessor<T>: From<L::ValueBlock> + From<R::ValueBlock>,
impl<L, R, T> SparseInstance for SparseCombineLeft<L, R, T>where
L: SparseInstance<DType = T>,
R: SparseInstance<DType = T>,
T: CType + DType + PartialEq + Debug,
Accessor<T>: From<L::ValueBlock> + From<R::ValueBlock>,
type CoordBlock = Accessor<u64>
type ValueBlock = Accessor<T>
type Blocks = Pin<Box<dyn Stream<Item = Result<(Array<u64, <SparseCombineLeft<L, R, T> as SparseInstance>::CoordBlock, Platform>, Array<T, <SparseCombineLeft<L, R, T> as SparseInstance>::ValueBlock, Platform>), TCError>> + Send>>
type DType = T
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,
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>>
source§impl<L, R, T> TensorInstance for SparseCombineLeft<L, R, T>
impl<L, R, T> TensorInstance for SparseCombineLeft<L, R, T>
source§impl<L, R, T> TensorPermitRead for SparseCombineLeft<L, R, T>
impl<L, R, T> TensorPermitRead for SparseCombineLeft<L, R, T>
Auto Trait Implementations§
impl<L, R, T> RefUnwindSafe for SparseCombineLeft<L, R, T>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R, T> Send for SparseCombineLeft<L, R, T>
impl<L, R, T> Sync for SparseCombineLeft<L, R, T>
impl<L, R, T> Unpin for SparseCombineLeft<L, R, T>
impl<L, R, T> UnwindSafe for SparseCombineLeft<L, R, T>where
L: UnwindSafe,
R: UnwindSafe,
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
source§impl<F> Match for F
impl<F> Match for F
source§fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
Returns
true
if self
can be cast into the target type T
.§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
source§fn can_cast_from(_: &F) -> bool
fn can_cast_from(_: &F) -> bool
Test if
value
can be cast into Self
.source§fn opt_cast_from(f: F) -> Option<T>
fn opt_cast_from(f: F) -> Option<T>
Returns
Some(Self)
if the source value can be cast into Self
, otherwise None
.source§impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
source§fn can_cast_into(&self) -> bool
fn can_cast_into(&self) -> bool
Test if
self
can be cast into T
.source§fn opt_cast_into(self) -> Option<T>
fn opt_cast_into(self) -> Option<T>
Returns
Some(T)
if self
can be cast into T
, otherwise None
.