pub struct NormalizeChunkStatus { /* private fields */ }Expand description
Status returned by normalize_chunk describing how many bytes were
written and whether the chunk ended with a \r.
Implementations§
Source§impl NormalizeChunkStatus
impl NormalizeChunkStatus
Sourcepub fn output_len(&self) -> usize
pub fn output_len(&self) -> usize
Number of bytes written into the output buffer for this chunk.
Sourcepub fn ended_with_cr(&self) -> bool
pub fn ended_with_cr(&self) -> bool
Whether the input ended with an unpaired \r.
If true, the next invocation of normalize_chunk should have preceded_by_cr
set to true to properly handle a possible leading \n.
Trait Implementations§
Source§impl Clone for NormalizeChunkStatus
impl Clone for NormalizeChunkStatus
Source§fn clone(&self) -> NormalizeChunkStatus
fn clone(&self) -> NormalizeChunkStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 NormalizeChunkStatus
impl Debug for NormalizeChunkStatus
Source§impl PartialEq for NormalizeChunkStatus
impl PartialEq for NormalizeChunkStatus
impl Eq for NormalizeChunkStatus
impl StructuralPartialEq for NormalizeChunkStatus
Auto Trait Implementations§
impl Freeze for NormalizeChunkStatus
impl RefUnwindSafe for NormalizeChunkStatus
impl Send for NormalizeChunkStatus
impl Sync for NormalizeChunkStatus
impl Unpin for NormalizeChunkStatus
impl UnwindSafe for NormalizeChunkStatus
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