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
sourceconst TYPE_NAME: &'static [u8] = type_names::TEXT
const TYPE_NAME: &'static [u8] = type_names::TEXT
The corresponding attribute type name literal
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.
Trait Implementations§
impl Copy for BlockType
impl Eq for BlockType
impl StructuralPartialEq for BlockType
Auto Trait Implementations§
impl Freeze for BlockType
impl RefUnwindSafe for BlockType
impl Send for BlockType
impl Sync for BlockType
impl Unpin for BlockType
impl UnwindSafe for BlockType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)