fn container_type_from_app_marker(marker: u8) -> Result<ContainerType>
{
    match marker {
        0xe0 => Ok(ContainerType::JFIF),
        0xe1 => Ok(ContainerType::EXIF),
        _ => Err(invalid_format!("JPEG file is neighter JFIF nor EXIF"))
    }
}
/**
  Determines wether or not this is an EXIF file based on the APPn marker
*/
Determines wether or not this is an EXIF file based on the APPn marker
Determines wether or not this is an EXIF file based on the APPn marker
fn container_type_from_app_marker(marker: u8) -> Result<ContainerType>
{
    match marker {
        0xe0 => Ok(ContainerType::JFIF),
        0xe1 => Ok(ContainerType::EXIF),
        _ => Err(invalid_format!("JPEG file is neighter JFIF nor EXIF"))
    }
}
fn container_type_from_app_marker ( marker : u8 ) -> Result < ContainerType > { match marker { 0xe0 => Ok ( ContainerType :: JFIF ) , 0xe1 => Ok ( ContainerType :: EXIF ) , _ => Err ( invalid_format ! ( " " ) ) } }
Determines wether or not this is an EXIF file based on the APPn marker
Determines wether or not this is an EXIF file based on the APPn marker
marker
u8