#[repr(C, packed(1))]pub struct MipTextureHead { /* private fields */ }
Expand description
Lump header for mip-mapped textures
Trait Implementations§
Source§impl Clone for MipTextureHead
impl Clone for MipTextureHead
Source§fn clone(&self) -> MipTextureHead
fn clone(&self) -> MipTextureHead
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 moreSource§impl Debug for MipTextureHead
impl Debug for MipTextureHead
Source§impl PartialEq for MipTextureHead
impl PartialEq for MipTextureHead
Source§impl TryFrom<[u8; 40]> for MipTextureHead
impl TryFrom<[u8; 40]> for MipTextureHead
Source§fn try_from(bytes: [u8; 40]) -> Result<Self, Self::Error>
fn try_from(bytes: [u8; 40]) -> Result<Self, Self::Error>
Obtain header from a block of bytes as found in a miptex WAD lump.
§Panic
Will panic if width or height are not each divisible by 8, in which case
valid mips cannot be generated. Will panic if number of pixels in mip
0 cannot fit within a u32
.
impl Copy for MipTextureHead
impl Eq for MipTextureHead
impl StructuralPartialEq for MipTextureHead
Auto Trait Implementations§
impl Freeze for MipTextureHead
impl RefUnwindSafe for MipTextureHead
impl Send for MipTextureHead
impl Sync for MipTextureHead
impl Unpin for MipTextureHead
impl UnwindSafe for MipTextureHead
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