pub struct ForDecoder;Expand description
Frame-of-Reference decoder.
Implementations§
Source§impl ForDecoder
impl ForDecoder
Sourcepub fn decode_i64(data: &[u8]) -> Result<Vec<i64>>
pub fn decode_i64(data: &[u8]) -> Result<Vec<i64>>
Decode a FOR-encoded byte buffer back to i64 values.
§Errors
Returns EncodingError::CorruptData if the data is malformed.
Sourcepub fn decode_u64(data: &[u8]) -> Result<Vec<u64>>
pub fn decode_u64(data: &[u8]) -> Result<Vec<u64>>
Decode a FOR-encoded byte buffer back to u64 values.
Uses native u64 arithmetic, matching the encoder’s native u64 path.
§Errors
Returns EncodingError::CorruptData if the data is malformed.
Trait Implementations§
Source§impl Clone for ForDecoder
impl Clone for ForDecoder
Source§fn clone(&self) -> ForDecoder
fn clone(&self) -> ForDecoder
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 ForDecoder
Auto Trait Implementations§
impl Freeze for ForDecoder
impl RefUnwindSafe for ForDecoder
impl Send for ForDecoder
impl Sync for ForDecoder
impl Unpin for ForDecoder
impl UnsafeUnpin for ForDecoder
impl UnwindSafe for ForDecoder
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