Skip to main content

BoxedValidatorFn

Type Alias BoxedValidatorFn 

Source
pub type BoxedValidatorFn = Box<dyn Fn(&[u8]) -> Option<bool>>;
Expand description

The optional auto-detection probe for a Closure parser — same contract as Parse::is_format_supported.

Given the raw bytes, return Some(true) if confident, Some(false) if definitely not this format, or None to abstain. The default (when none is set) abstains with None.

Aliased Type§

pub struct BoxedValidatorFn(/* private fields */);