pub struct LegacyWhitespaceDecoder { /* private fields */ }Expand description
Heapless ordinary decoder that ignores the documented legacy whitespace.
Detailed malformed-input errors retain indexes in the original source, including across whitespace-only chunks. The state does not wipe on drop.
Implementations§
Source§impl LegacyWhitespaceDecoder
impl LegacyWhitespaceDecoder
Sourcepub fn update(
&mut self,
input: &[u8],
output: &mut [u8],
) -> Result<Step, OperationError>
pub fn update( &mut self, input: &[u8], output: &mut [u8], ) -> Result<Step, OperationError>
Accepts one original source fragment and writes decoded bytes that fit.
Sourcepub fn finish(&mut self, output: &mut [u8]) -> Result<Step, OperationError>
pub fn finish(&mut self, output: &mut [u8]) -> Result<Step, OperationError>
Finalizes the selected codec’s padding policy.
Sourcepub const fn source_position(&self) -> usize
pub const fn source_position(&self) -> usize
Returns the number of original source bytes accepted since reset.
Trait Implementations§
Source§impl Clone for LegacyWhitespaceDecoder
impl Clone for LegacyWhitespaceDecoder
Source§fn clone(&self) -> LegacyWhitespaceDecoder
fn clone(&self) -> LegacyWhitespaceDecoder
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 moreSource§impl Debug for LegacyWhitespaceDecoder
impl Debug for LegacyWhitespaceDecoder
impl Eq for LegacyWhitespaceDecoder
Source§impl PartialEq for LegacyWhitespaceDecoder
impl PartialEq for LegacyWhitespaceDecoder
impl StructuralPartialEq for LegacyWhitespaceDecoder
Auto Trait Implementations§
impl Freeze for LegacyWhitespaceDecoder
impl RefUnwindSafe for LegacyWhitespaceDecoder
impl Send for LegacyWhitespaceDecoder
impl Sync for LegacyWhitespaceDecoder
impl Unpin for LegacyWhitespaceDecoder
impl UnsafeUnpin for LegacyWhitespaceDecoder
impl UnwindSafe for LegacyWhitespaceDecoder
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