[][src]Function imghdr::from_bytes

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

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.