Type Alias image::codecs::dxt::DxtVariant
source · pub type DxtVariant = DXTVariant;
Expand description
Aliased Type§
enum DxtVariant {
DXT1,
DXT3,
DXT5,
}
Variants§
DXT1
The DXT1 format. 48 bytes of RGB data in a 4x4 pixel square is compressed into an 8 byte block of DXT1 data
DXT3
The DXT3 format. 64 bytes of RGBA data in a 4x4 pixel square is compressed into a 16 byte block of DXT3 data
DXT5
The DXT5 format. 64 bytes of RGBA data in a 4x4 pixel square is compressed into a 16 byte block of DXT5 data
Implementations
source§impl DXTVariant
impl DXTVariant
sourcepub fn color_type(self) -> ColorType
pub fn color_type(self) -> ColorType
Returns the color type that is stored in this DXT variant
Trait Implementations
impl Copy for DXTVariant
source§impl Debug for DXTVariant
impl Debug for DXTVariant
impl StructuralPartialEq for DXTVariant
source§impl PartialEq for DXTVariant
impl PartialEq for DXTVariant
source§fn eq(&self, other: &DXTVariant) -> bool
fn eq(&self, other: &DXTVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DXTVariant
source§impl Clone for DXTVariant
impl Clone for DXTVariant
source§fn clone(&self) -> DXTVariant
fn clone(&self) -> DXTVariant
Returns a copy 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 more