pub fn validate(buf: &[u8], level: Level) -> Result<()>
Validate buf at level, returning the first failure.
buf
level