use crate::{ScanError, ScanErrorKind};

/// Error handling extension trait.
pub trait ScanErrorExt {
    /// Generate an error based on the current state of the scanner.
    fn error(&self, kind: ScanErrorKind) -> ScanError;
}
