Struct tc_tensor::BlockListFile [−][src]
pub struct BlockListFile<FD, FS, D, T> { /* fields omitted */ }
Expand description
A wrapper around a DenseTensor
File
Implementations
impl<FD, FS, D, T> BlockListFile<FD, FS, D, T> where
FD: File<Array>,
FS: File<Node>,
D: Dir,
T: Transaction<D>,
impl<FD, FS, D, T> BlockListFile<FD, FS, D, T> where
FD: File<Array>,
FS: File<Node>,
D: Dir,
T: Transaction<D>,
Construct a new BlockListFile
with the given Shape
, filled with the given value
.
Construct a new BlockListFile
from the given Stream
of Array
blocks.
Construct a new BlockListFile
from the given Stream
of elements.
Construct a new BlockListFile
of elements evenly distributed between start
and stop
.
Consume this BlockListFile
handle and return a Stream
of Array
blocks.
Sort the elements in this BlockListFile
.
Trait Implementations
impl<FD, FS, D, T, B> CopyFrom<D, B> for BlockListFile<FD, FS, D, T> where
FD: File<Array>,
FS: File<Node>,
D: Dir,
T: Transaction<D>,
B: DenseAccess<FD, FS, D, T>,
impl<FD, FS, D, T, B> CopyFrom<D, B> for BlockListFile<FD, FS, D, T> where
FD: File<Array>,
FS: File<Node>,
D: Dir,
T: Transaction<D>,
B: DenseAccess<FD, FS, D, T>,
impl<FD, FS, D, T> DenseAccess<FD, FS, D, T> for BlockListFile<FD, FS, D, T> where
D: Dir,
T: Transaction<D>,
FD: File<Array>,
FS: File<Node>,
D::File: AsType<FD> + AsType<FS>,
D::FileClass: From<TensorType>,
impl<FD, FS, D, T> DenseAccess<FD, FS, D, T> for BlockListFile<FD, FS, D, T> where
D: Dir,
T: Transaction<D>,
FD: File<Array>,
FS: File<Node>,
D::File: AsType<FD> + AsType<FS>,
D::FileClass: From<TensorType>,
type Slice = BlockListFileSlice<FD, FS, D, T>
type Slice = BlockListFileSlice<FD, FS, D, T>
The type returned by slice
type Transpose = BlockListTranspose<FD, FS, D, T, Self>
type Transpose = BlockListTranspose<FD, FS, D, T, Self>
The type returned by transpose
Return a DenseAccessor
enum which contains this accessor.
Return a stream of the Array
s which this DenseTensor
comprises.
Return a transpose of this DenseTensor
.
Return an Array with the values at the given coordinates.
Return a stream of the elements of this DenseTensor
.
impl<FD, FS, D, T> DenseWrite<FD, FS, D, T> for BlockListFile<FD, FS, D, T> where
D: Dir,
T: Transaction<D>,
FD: File<Array>,
FS: File<Node>,
D::File: AsType<FD> + AsType<FS>,
D::FileClass: From<TensorType>,
impl<FD, FS, D, T> DenseWrite<FD, FS, D, T> for BlockListFile<FD, FS, D, T> where
D: Dir,
T: Transaction<D>,
FD: File<Array>,
FS: File<Node>,
D::File: AsType<FD> + AsType<FS>,
D::FileClass: From<TensorType>,
Overwrite this accessor’s contents with those of the given accessor.
impl<FD, FS, D, T> From<BlockListFile<FD, FS, D, T>> for DenseAccessor<FD, FS, D, T> where
FD: File<Array>,
FS: File<Node>,
D: Dir,
T: Transaction<D>,
impl<FD, FS, D, T> From<BlockListFile<FD, FS, D, T>> for DenseAccessor<FD, FS, D, T> where
FD: File<Array>,
FS: File<Node>,
D: Dir,
T: Transaction<D>,
Performs the conversion.
impl<FD, FS, D, T> FromStream for BlockListFile<FD, FS, D, T> where
FD: File<Array>,
FS: Send,
D: Send,
T: Send,
impl<FD, FS, D, T> FromStream for BlockListFile<FD, FS, D, T> where
FD: File<Array>,
FS: Send,
D: Send,
T: Send,
The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
impl<FD, FS, D, T> Persist<D> for BlockListFile<FD, FS, D, T> where
FD: File<Array>,
FS: File<Node>,
D: Dir,
T: Transaction<D>,
impl<FD, FS, D, T> Persist<D> for BlockListFile<FD, FS, D, T> where
FD: File<Array>,
FS: File<Node>,
D: Dir,
T: Transaction<D>,
impl<FD, FS, D, T> Restore<D> for BlockListFile<FD, FS, D, T> where
FD: File<Array>,
FS: File<Node>,
D: Dir,
T: Transaction<D>,
impl<FD, FS, D, T> Restore<D> for BlockListFile<FD, FS, D, T> where
FD: File<Array>,
FS: File<Node>,
D: Dir,
T: Transaction<D>,
impl<FD, FS, D, T> Transact for BlockListFile<FD, FS, D, T> where
FD: File<Array> + Transact,
FS: File<Node>,
D: Dir,
T: Transaction<D>,
impl<FD, FS, D, T> Transact for BlockListFile<FD, FS, D, T> where
FD: File<Array> + Transact,
FS: File<Node>,
D: Dir,
T: Transaction<D>,
Commit this transaction.
Auto Trait Implementations
impl<FD, FS, D, T> RefUnwindSafe for BlockListFile<FD, FS, D, T> where
D: RefUnwindSafe,
FD: RefUnwindSafe,
FS: RefUnwindSafe,
T: RefUnwindSafe,
impl<FD, FS, D, T> Unpin for BlockListFile<FD, FS, D, T> where
D: Unpin,
FD: Unpin,
FS: Unpin,
T: Unpin,
impl<FD, FS, D, T> UnwindSafe for BlockListFile<FD, FS, D, T> where
D: UnwindSafe,
FD: UnwindSafe,
FS: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns true
if self
can be cast into the target type T
.
Test if value
can be cast into Self
.
Returns Some(Self)
if the source value can be cast into Self
, otherwise None
.
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
Returns Ok(Self)
if the source value can be cast into Self
, otherwise calls on_err
.
Test if self
can be cast into T
.
Returns Some(T)
if self
can be cast into T
, otherwise None
.
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
Returns Ok(T)
if self
can be cast into T
, otherwise calls on_err
.