pub struct Dxt1 {
pub color_endpoint: (u16, u16),
pub color_selector: [u8; 4],
}Fields§
§color_endpoint: (u16, u16)§color_selector: [u8; 4]Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dxt1
impl<'de> Deserialize<'de> for Dxt1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Unpack for Dxt1
impl Unpack for Dxt1
fn unpack( tables: &Tables, codec: &mut Codec<'_>, width: u16, height: u16, face: u8, ) -> Result<Vec<u8>, Error>
fn next_tile_idx( codec: &mut Codec<'_>, encoding: &Huffman, tile_bits: &mut u32, ) -> Result<(usize, [usize; 4]), Error>
const TRUNK_SIZE: usize = 2
const COUNT_TILES: [usize; 8] = _
const TILES: [[usize; 4]; 8] = _
Auto Trait Implementations§
impl Freeze for Dxt1
impl RefUnwindSafe for Dxt1
impl Send for Dxt1
impl Sync for Dxt1
impl Unpin for Dxt1
impl UnsafeUnpin for Dxt1
impl UnwindSafe for Dxt1
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more