pub struct CompressedTileBlock {
pub coordinates: TileCoordinates,
pub compressed_pixels_le: Vec<u8>,
}Expand description
This Block is a tile of flat (non-deep) data.
Corresponds to type attribute tiledimage.
The byte data is in little-endian format,
as these bytes will be written into the file directly.
Fields§
§coordinates: TileCoordinatesThe tile location.
compressed_pixels_le: Vec<u8>One or more scan lines may be stored together as a scan line block. The number of scan lines per block depends on how the pixel data are compressed. For each line in the tile, for each channel, the row values are contiguous. This data is compressed and in little-endian format.
Implementations§
Trait Implementations§
Source§impl Clone for CompressedTileBlock
impl Clone for CompressedTileBlock
Source§fn clone(&self) -> CompressedTileBlock
fn clone(&self) -> CompressedTileBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompressedTileBlock
impl RefUnwindSafe for CompressedTileBlock
impl Send for CompressedTileBlock
impl Sync for CompressedTileBlock
impl Unpin for CompressedTileBlock
impl UnwindSafe for CompressedTileBlock
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