pub struct CrunchedData<'a> {
pub buffer: &'a [u8],
/* private fields */
}Fields§
§buffer: &'a [u8]Implementations§
Source§impl<'a> CrunchedData<'a>
impl<'a> CrunchedData<'a>
pub fn new(buffer: &'a [u8]) -> Self
Sourcepub fn level_info(&self, level: u32) -> LevelInfo
pub fn level_info(&self, level: u32) -> LevelInfo
Retrieves mipmap level specific information from the CRN data.
Sourcepub fn texture_info(&self) -> TextureInfo
pub fn texture_info(&self) -> TextureInfo
Retrieves texture information from the CRN data.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CrunchedData<'a>
impl<'a> RefUnwindSafe for CrunchedData<'a>
impl<'a> !Send for CrunchedData<'a>
impl<'a> !Sync for CrunchedData<'a>
impl<'a> Unpin for CrunchedData<'a>
impl<'a> UnwindSafe for CrunchedData<'a>
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