Struct Requirements
pub struct Requirements { pub file_format_version: u8, pub is_single_layer_and_tiled: bool, pub has_long_names: bool, pub has_deep_data: bool, pub has_multiple_layers: bool }
A summary of requirements that must be met to read this exr file.
Used to determine whether this file can be read by a given reader.
It includes the OpenEXR version number. This library aims to support
version 2.0.
Fields
file_format_version: u8This library supports reading version 1 and 2, and writing version 2.
is_single_layer_and_tiled: boolIf true, this image has tiled blocks and contains only a single layer. If false and not deep and not multilayer, this image is a single layer image with scan line blocks.
has_long_names: boolWhether this file has strings with a length greater than 31. Strings can never be longer than 255.
has_deep_data: boolThis image contains at least one layer with deep data.
has_multiple_layers: boolWhether this file contains multiple layers.
Implementations
impl Requirements
fn is_multilayer(&self) -> boolIs this file declared to contain multiple layers?
fn read<R: Read>(read: &mut R) -> Result<Self>Read the value without validating.
fn write<W: Write>(self, write: &mut W) -> UnitResultWithout validation, write this instance to the byte stream.
fn validate(&self) -> UnitResultValidate this instance.
Trait Implementations
impl Clone for Requirements
fn clone(&self) -> Self
impl Copy for Requirements
impl Debug for Requirements
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Requirements
impl Hash for Requirements
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for Requirements
fn eq(&self, other: &Self) -> bool