#[repr(C, packed(1))]pub struct Entry { /* private fields */ }
Expand description
Provides the location of a lump within a WAD archive, length of the lump, name (16 bytes, null-terminated), and lump kind
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn name_to_cstring(&self) -> CString
pub fn name_to_cstring(&self) -> CString
Obtain the name as a C string. If the name is not already null-terminated (in which case the entry is not well-formed) a null byte is appended to make a valid C string.
Sourcepub fn name_to_string(&self) -> Result<String, IntoStringError>
pub fn name_to_string(&self) -> Result<String, IntoStringError>
Attempt to interpret the name as UTF-8 encoded string
Trait Implementations§
impl Copy for Entry
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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