enc 0.19.0

This library aids in processing encoded data.
Documentation
1
2
3
4
5
6
7
use crate::Error;

/// Responsible for validating encoded data.
pub trait Validator {
    /// Checks if the encoded `data` is valid.
    fn is_valid(&self, data: &[u8]) -> Result<bool, Error>;
}