scanner/error: add variant Extend
This variant suggests to the caller that they should extend the byte stream before calling the Scanner again.
This commit is contained in:
parent
a0ad61b7ba
commit
e7d68e8514
|
@ -72,6 +72,10 @@ pub enum ScanError
|
|||
|
||||
/// An integer overflowed
|
||||
IntOverflow,
|
||||
|
||||
/// The underlying buffer should be extended before
|
||||
/// calling the Scanner again
|
||||
Extend,
|
||||
}
|
||||
|
||||
impl fmt::Display for ScanError
|
||||
|
|
Loading…
Reference in New Issue