pub enum Scan {
Complete {
len: usize,
},
Incomplete,
}Expand description
Outcome of scanning for one complete value.
Variants§
Complete
A complete value occupies the first len bytes of the input.
Incomplete
The input ends in the middle of a value; supply more bytes and retry.
An empty input is also Incomplete: whether that means “end of stream”
or “not read enough yet” is for the caller to decide.
Trait Implementations§
impl Copy for Scan
impl Eq for Scan
impl StructuralPartialEq for Scan
Auto Trait Implementations§
impl Freeze for Scan
impl RefUnwindSafe for Scan
impl Send for Scan
impl Sync for Scan
impl Unpin for Scan
impl UnsafeUnpin for Scan
impl UnwindSafe for Scan
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