pub enum StreamItem {
Tensor(StreamTensor),
Composite(StreamComposite),
}Expand description
One decoded item from the stream: either a plain tensor or a composite.
A composite’s members are themselves StreamItems, so nested composites (ADR-027
§ Binding) are represented as a tree.
§Examples
See StreamReaderCore.
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.
§Examples
See StreamReaderCore.
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