pub struct StreamOutput { /* private fields */ }Expand description
Incremental concatenation of chunk outputs.
Each chunk’s data is folded in and the chunk dropped, keeping peak
memory proportional to the final output rather than
O(n_chunks x chunk_size). Non-tensor outputs do not concatenate;
the last one wins (a chain ending in an aggregate produces exactly
one).
Implementations§
Source§impl StreamOutput
impl StreamOutput
Trait Implementations§
Source§impl Default for StreamOutput
impl Default for StreamOutput
Source§fn default() -> StreamOutput
fn default() -> StreamOutput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamOutput
impl RefUnwindSafe for StreamOutput
impl Send for StreamOutput
impl Sync for StreamOutput
impl Unpin for StreamOutput
impl UnsafeUnpin for StreamOutput
impl UnwindSafe for StreamOutput
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