pub struct ChimpDecoder;Expand description
Chimp float decoder.
Implementations§
Source§impl ChimpDecoder
impl ChimpDecoder
Sourcepub fn decode(data: &[u8]) -> Result<Vec<f64>>
pub fn decode(data: &[u8]) -> Result<Vec<f64>>
Decode a Chimp-encoded byte buffer back to f64 values.
§Errors
Returns EncodingError::CorruptData if the data is malformed.
Sourcepub fn decode_into(data: &[u8], output: &mut Vec<f64>) -> Result<()>
pub fn decode_into(data: &[u8], output: &mut Vec<f64>) -> Result<()>
Decode into a pre-allocated output vector for zero-alloc reuse.
§Errors
Returns EncodingError::CorruptData if the data is malformed.
Trait Implementations§
Source§impl Clone for ChimpDecoder
impl Clone for ChimpDecoder
Source§fn clone(&self) -> ChimpDecoder
fn clone(&self) -> ChimpDecoder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChimpDecoder
Auto Trait Implementations§
impl Freeze for ChimpDecoder
impl RefUnwindSafe for ChimpDecoder
impl Send for ChimpDecoder
impl Sync for ChimpDecoder
impl Unpin for ChimpDecoder
impl UnsafeUnpin for ChimpDecoder
impl UnwindSafe for ChimpDecoder
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