pub struct SemanticMask {
pub width: u16,
pub height: u16,
pub data: Vec<u8>,
pub palette: Vec<Smc1ClassEntry>,
pub coord_space: u8,
pub encoding: Smc1Encoding,
}Fields§
§width: u16§height: u16§data: Vec<u8>Decompressed labels, row-major, one byte per pixel.
palette: Vec<Smc1ClassEntry>§coord_space: u80 => decode XY (supported by helpers here)
encoding: Smc1EncodingEncoding as stored on disk. When reading, data is decompressed, but this
field preserves the on-disk encoding indicator.
Trait Implementations§
Source§impl Clone for SemanticMask
impl Clone for SemanticMask
Source§fn clone(&self) -> SemanticMask
fn clone(&self) -> SemanticMask
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 SemanticMask
impl RefUnwindSafe for SemanticMask
impl Send for SemanticMask
impl Sync for SemanticMask
impl Unpin for SemanticMask
impl UnsafeUnpin for SemanticMask
impl UnwindSafe for SemanticMask
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