#[repr(C)]pub struct ResourceKey {
pub guid: [u8; 16],
pub type_hash: u32,
pub part: u32,
}Expand description
A game resource’s key: its GUID in memory order, its type hash and part.
§Examples
use enshwick::abi::ResourceKey;
let item = ResourceKey { guid: [0x3a; 16], type_hash: 0xb5ce_8765, part: 0 };
assert_eq!(item.part, 0);Fields§
§guid: [u8; 16]The resource’s GUID, in memory order (bytes_le of the textual form).
type_hash: u32The reflected type hash of the resource’s root type.
part: u32The part of a resource split in parts; 0 for most.
Trait Implementations§
Source§impl Clone for ResourceKey
impl Clone for ResourceKey
impl Copy for ResourceKey
Source§impl Debug for ResourceKey
impl Debug for ResourceKey
impl Eq for ResourceKey
Source§impl Hash for ResourceKey
impl Hash for ResourceKey
Source§impl PartialEq for ResourceKey
impl PartialEq for ResourceKey
impl StructuralPartialEq for ResourceKey
Auto Trait Implementations§
impl Freeze for ResourceKey
impl RefUnwindSafe for ResourceKey
impl Send for ResourceKey
impl Sync for ResourceKey
impl Unpin for ResourceKey
impl UnsafeUnpin for ResourceKey
impl UnwindSafe for ResourceKey
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