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:
Paul Stemmet 2021-09-09 12:14:50 +00:00
parent a0ad61b7ba
commit e7d68e8514
Signed by: Paul Stemmet
GPG Key ID: EDEA539F594E7E75
1 changed files with 4 additions and 0 deletions

View File

@ -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