pub struct TransformOutput { /* private fields */ }Expand description
Reused output buffer of a SeriesTransform call; clearing keeps the
capacity, so a warmed-up buffer does not allocate.
Implementations§
Source§impl TransformOutput
impl TransformOutput
Sourcepub fn push(&mut self, bar: TransformBar) -> bool
pub fn push(&mut self, bar: TransformBar) -> bool
Adds an element. Returns false when the call already wrote
MAX_OUTPUT_PER_CALL elements or memory ran out: the transform
should stop, and core reports the error.
Sourcepub fn as_slice(&self) -> &[TransformBar]
pub fn as_slice(&self) -> &[TransformBar]
The elements written since the last clear.
Trait Implementations§
Source§impl Debug for TransformOutput
impl Debug for TransformOutput
Auto Trait Implementations§
impl Forget for TransformOutput
impl Freeze for TransformOutput
impl Move for TransformOutput
impl RefUnwindSafe for TransformOutput
impl Send for TransformOutput
impl Sync for TransformOutput
impl Unpin for TransformOutput
impl UnsafeUnpin for TransformOutput
impl UnwindSafe for TransformOutput
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