Function from_bytes

Source
pub fn from_bytes<T: AsRef<[u8]>>(buf: T) -> Option<Type>
Expand description

Try to determine image format from a bytes slice.

This function is available in a no_std environment.

ยงReturns

Some(Type) if it is a known image format, None otherwise.