pub struct Chimp128Decoder;Expand description
Chimp128 float decoder.
Implementations§
Source§impl Chimp128Decoder
impl Chimp128Decoder
Sourcepub fn decode(data: &[u8]) -> Result<Vec<f64>>
pub fn decode(data: &[u8]) -> Result<Vec<f64>>
Decode a Chimp128-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 Chimp128Decoder
impl Clone for Chimp128Decoder
Source§fn clone(&self) -> Chimp128Decoder
fn clone(&self) -> Chimp128Decoder
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 Chimp128Decoder
Auto Trait Implementations§
impl Freeze for Chimp128Decoder
impl RefUnwindSafe for Chimp128Decoder
impl Send for Chimp128Decoder
impl Sync for Chimp128Decoder
impl Unpin for Chimp128Decoder
impl UnsafeUnpin for Chimp128Decoder
impl UnwindSafe for Chimp128Decoder
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