pub struct KeyTable { /* private fields */ }Expand description
Decoded contents of a KEY file together with lazy BIF resolvers.
The table implements nwnrs_resman::ResContainer, so it can be placed
directly inside a layered nwnrs_resman::ResMan.
A decoded KEY table together with its referenced BIF handles.
The table preserves the KEY-level lookup structure explicitly: typed
resource references map to KEY entries, which in turn identify one BIF and
one variable resource id. The same typed value also implements
nwnrs_resman::ResContainer so callers may use it directly in layered
resource resolution.
Implementations§
Source§impl KeyTable
impl KeyTable
Sourcepub fn version(&self) -> KeyBifVersion
pub fn version(&self) -> KeyBifVersion
Returns the KEY/BIF version expected by this table.
Sourcepub fn build_year(&self) -> u32
pub fn build_year(&self) -> u32
Returns the build year stored in the KEY header.
Sourcepub fn raw_oid(&self) -> Option<&str>
pub fn raw_oid(&self) -> Option<&str>
Returns the raw enhanced-edition OID bytes as stored in the KEY header.
Sourcepub fn bif_contents(&self) -> KeyResult<Vec<KeyBifContents>>
pub fn bif_contents(&self) -> KeyResult<Vec<KeyBifContents>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyTable
impl !RefUnwindSafe for KeyTable
impl Send for KeyTable
impl Sync for KeyTable
impl Unpin for KeyTable
impl UnsafeUnpin for KeyTable
impl !UnwindSafe for KeyTable
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