pub enum StreamItem {
Tensor(StreamTensor),
Composite(StreamComposite),
}Expand description
One decoded item from the stream: either a plain tensor or a composite.
Returned by next_item. A composite’s members are
themselves StreamItems, so nested composites (ADR-027 § Binding) are represented
as a tree.
Variants§
Tensor(StreamTensor)
A single (non-composite) tensor.
Composite(StreamComposite)
A composite: a data-less head plus its ordered members.
Implementations§
Source§impl StreamItem
impl StreamItem
Sourcepub fn descriptor(&self) -> &TensorDescriptor
pub fn descriptor(&self) -> &TensorDescriptor
The item’s governing descriptor: the tensor’s descriptor, or the composite head.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamItem
impl RefUnwindSafe for StreamItem
impl Send for StreamItem
impl Sync for StreamItem
impl Unpin for StreamItem
impl UnsafeUnpin for StreamItem
impl UnwindSafe for StreamItem
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