[][src]Struct wad::Wad

pub struct Wad { /* fields omitted */ }

Methods

impl Wad[src]

pub fn kind(&self) -> Kind[src]

pub fn len(&self) -> usize[src]

pub fn entry_id_from_raw_entry(raw_entry: &RawEntry) -> EntryId[src]

pub unsafe fn entry_id_unchecked(&self, index: usize) -> EntryId[src]

pub fn entry_id(&self, index: usize) -> Option<EntryId>[src]

Important traits for IdIterator<'a>
pub fn id_iter(&self) -> IdIterator[src]

pub fn index_of(
    &self,
    id: impl Into<EntryId>
) -> Option<usize>
[src]

pub fn entry_from_raw_entry(&self, raw_entry: &RawEntry) -> Result<Entry, Error>[src]

pub unsafe fn entry_unchecked(&self, index: usize) -> Result<Entry, Error>[src]

pub fn entry(&self, index: usize) -> Result<Entry, Error>[src]

Important traits for EntryIterator<'a>
pub fn entry_iter(&self) -> EntryIterator[src]

pub fn by_id(
    &self,
    id: impl Into<EntryId>
) -> Option<&[u8]>
[src]

pub fn slice(
    &self,
    slice_index: impl SliceIndex<[RawEntry], Output = [RawEntry]>
) -> WadSlice
[src]

pub fn as_slice(&self) -> WadSlice[src]

Trait Implementations

impl<'a> From<&'a Wad> for WadSlice<'a>[src]

impl Index<usize> for Wad[src]

type Output = [u8]

The returned type after indexing.

Auto Trait Implementations

impl Send for Wad

impl Sync for Wad

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]