Skip to main content

FormatProbe

Trait FormatProbe 

Source
pub trait FormatProbe: Send + Sync {
    // Required method
    fn probe(&self, path: &Path) -> Result<ProbeResult, WsiError>;
}
Expand description

Detects whether a file is a given format. Fast, no full parse.

Required Methods§

Source

fn probe(&self, path: &Path) -> Result<ProbeResult, WsiError>

Implementations on Foreign Types§

Source§

impl<T: FormatProbe> FormatProbe for Arc<T>

Implementors§