pub struct EncodingFile { /* private fields */ }Expand description
Parsed encoding file with fast CKey -> EKey lookup.
Constructed via EncodingFile::parse from the decoded (post-BLTE) encoding
file data. Use find_ekey to resolve a content
key to its encoding key(s).
Implementations§
Source§impl EncodingFile
impl EncodingFile
Sourcepub fn find_ekey(&self, ckey: &[u8; 16]) -> Option<&EncodingEntry>
pub fn find_ekey(&self, ckey: &[u8; 16]) -> Option<&EncodingEntry>
Find the encoding entry for a given CKey.
Sourcepub fn header(&self) -> &EncodingHeader
pub fn header(&self) -> &EncodingHeader
Access the parsed header.
Auto Trait Implementations§
impl Freeze for EncodingFile
impl RefUnwindSafe for EncodingFile
impl Send for EncodingFile
impl Sync for EncodingFile
impl Unpin for EncodingFile
impl UnsafeUnpin for EncodingFile
impl UnwindSafe for EncodingFile
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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