Struct cdragon_prop::BinHashKindMapping
source · pub struct BinHashKindMapping<T, U> {
pub entry_path: T,
pub class_name: T,
pub field_name: T,
pub hash_value: T,
pub path_value: U,
}
Expand description
Generic type to associate each kind of hash from bin files to a value
Fields§
§entry_path: T
§class_name: T
§field_name: T
§hash_value: T
§path_value: U
Implementations§
source§impl<T, U> BinHashKindMapping<T, U>
impl<T, U> BinHashKindMapping<T, U>
sourcepub fn get(&self, kind: BinHashKind) -> &T
pub fn get(&self, kind: BinHashKind) -> &T
Give access to a specific field from its kind
sourcepub fn get_mut(&mut self, kind: BinHashKind) -> &mut T
pub fn get_mut(&mut self, kind: BinHashKind) -> &mut T
Give mutable access to a specific mapper from its kind
source§impl BinHashKindMapping<HashMapper<u32, 32>, HashMapper<u64, 64>>
impl BinHashKindMapping<HashMapper<u32, 32>, HashMapper<u64, 64>>
Trait Implementations§
Auto Trait Implementations§
impl<T, U> RefUnwindSafe for BinHashKindMapping<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for BinHashKindMapping<T, U>
impl<T, U> Sync for BinHashKindMapping<T, U>
impl<T, U> Unpin for BinHashKindMapping<T, U>
impl<T, U> UnwindSafe for BinHashKindMapping<T, U>where
T: UnwindSafe,
U: UnwindSafe,
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