Enum BlockType
pub enum BlockType
layer type, specifies block type and deepness.
Variants
-
ScanLine Corresponds to the string value
scanlineimage.-
Tile Corresponds to the string value
tiledimage.-
DeepScanLine Corresponds to the string value
deepscanline.-
DeepTile Corresponds to the string value
deeptile.
Implementations
impl BlockType
fn parse(text: Text) -> Result<Self>Return a
BlockTypeobject from the specified attribute text value.fn write(&self, write: &mut impl Write) -> UnitResultWithout validation, write this instance to the byte stream.
const fn to_text_bytes(&self) -> &[u8]Returns the raw attribute text value this type is represented by in a file.
fn byte_size(&self) -> usizeNumber of bytes this would consume in an exr file.
Trait Implementations
impl Clone for BlockType
fn clone(&self) -> Self
impl Copy for BlockType
impl Debug for BlockType
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for BlockType
impl Hash for BlockType
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for BlockType
fn eq(&self, other: &Self) -> bool