pub struct ResChunk {
pub data: ResTypeValue,
}Expand description
Header that appears at the front of every data chunk in a resource.
Fields§
§data: ResTypeValueThe actual data of this chunk. The type is based on the rtype field. The type is a
ResTypeValue, if not all of the bytes specified by [size] are read by the type, then
the size will be padded so that end position is correct.
Implementations§
Trait Implementations§
Source§impl From<ResTypeValue> for ResChunk
impl From<ResTypeValue> for ResChunk
Source§fn from(value: ResTypeValue) -> Self
fn from(value: ResTypeValue) -> Self
Converts to this type from the input type.
Source§impl From<ResourceMap> for ResChunk
impl From<ResourceMap> for ResChunk
Source§fn from(value: ResourceMap) -> Self
fn from(value: ResourceMap) -> Self
Converts to this type from the input type.
Source§impl From<StringPool> for ResChunk
impl From<StringPool> for ResChunk
Source§fn from(value: StringPool) -> Self
fn from(value: StringPool) -> Self
Converts to this type from the input type.
Source§impl HeaderSizeStatic for ResChunk
impl HeaderSizeStatic for ResChunk
Source§fn header_size() -> usize
fn header_size() -> usize
Get the header size, does not include the size of the res chunk header, or any other parent
wrappers
impl StructuralPartialEq for ResChunk
Auto Trait Implementations§
impl Freeze for ResChunk
impl RefUnwindSafe for ResChunk
impl Send for ResChunk
impl Sync for ResChunk
impl Unpin for ResChunk
impl UnsafeUnpin for ResChunk
impl UnwindSafe for ResChunk
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