FileTypeMatcher

Trait FileTypeMatcher 

Source
pub trait FileTypeMatcher {
    // Required method
    fn test(
        &self,
        relative_position: &RelativePosition,
        step: &Step,
        bytes: &[u8],
    ) -> TestResult;
}

Required Methods§

Source

fn test( &self, relative_position: &RelativePosition, step: &Step, bytes: &[u8], ) -> TestResult

Tests if the FileType magic number can be found in the bytes slice.

Implementors§