pub struct ResourceInfo { /* private fields */ }
Implementations§
Source§impl ResourceInfo
impl ResourceInfo
pub fn size(&self) -> u32
pub fn rrid(&self) -> &RuntimeResourceID
pub fn data_type(&self) -> String
pub fn references(&self) -> &Vec<(RuntimeResourceID, ResourceReferenceFlags)>
pub fn system_memory_requirement(&self) -> u32
pub fn video_memory_requirement(&self) -> u32
pub fn is_compressed(&self) -> bool
pub fn is_scrambled(&self) -> bool
Sourcepub fn compressed_size(&self) -> Option<u32>
pub fn compressed_size(&self) -> Option<u32>
will return None is the resource is not compressed
pub fn data_offset(&self) -> u64
pub fn states_chunk_size(&self) -> usize
pub fn reference_chunk_size(&self) -> usize
Trait Implementations§
Source§impl Clone for ResourceInfo
impl Clone for ResourceInfo
Source§fn clone(&self) -> ResourceInfo
fn clone(&self) -> ResourceInfo
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 moreAuto Trait Implementations§
impl Freeze for ResourceInfo
impl RefUnwindSafe for ResourceInfo
impl Send for ResourceInfo
impl Sync for ResourceInfo
impl Unpin for ResourceInfo
impl UnwindSafe for ResourceInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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