pub struct OutputStream { /* private fields */ }Expand description
A growable byte buffer for writing FIT binary.
Implementations§
Source§impl OutputStream
impl OutputStream
pub fn new() -> Self
pub fn with_capacity(cap: usize) -> Self
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Consume the stream and return the buffer.
Sourcepub fn write_bytes(&mut self, bytes: &[u8])
pub fn write_bytes(&mut self, bytes: &[u8])
Write raw bytes.
Trait Implementations§
Source§impl Debug for OutputStream
impl Debug for OutputStream
Source§impl Default for OutputStream
impl Default for OutputStream
Source§fn default() -> OutputStream
fn default() -> OutputStream
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OutputStream
impl RefUnwindSafe for OutputStream
impl Send for OutputStream
impl Sync for OutputStream
impl Unpin for OutputStream
impl UnsafeUnpin for OutputStream
impl UnwindSafe for OutputStream
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