pub enum BlockType {
ScanLine,
Tile,
DeepScanLine,
DeepTile,
}
Expand description
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§
source§impl BlockType
impl BlockType
sourcepub fn parse(text: Text) -> Result<Self>
pub fn parse(text: Text) -> Result<Self>
Return a BlockType
object from the specified attribute text value.
sourcepub fn write(&self, write: &mut impl Write) -> UnitResult
pub fn write(&self, write: &mut impl Write) -> UnitResult
Without validation, write this instance to the byte stream.
sourcepub fn to_text_bytes(&self) -> &[u8] ⓘ
pub fn to_text_bytes(&self) -> &[u8] ⓘ
Returns the raw attribute text value this type is represented by in a file.