[][src]Struct genie_drs::DRSTable

pub struct DRSTable {
    pub resource_type: ResourceType,
    // some fields omitted
}

A table containing resource entries.

Fields

resource_type: ResourceType

Type of the resource as a little-endian char array.

Implementations

impl DRSTable[src]

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

Get the number of resources in this table.

pub fn is_empty(&self) -> bool[src]

Check if the table contains no resources.

pub fn resources(&self) -> DRSResourceIterator[src]

Iterate over the resources in this table.

pub fn get_resource(&self, id: u32) -> Option<&DRSResource>[src]

Find a resource by ID.

pub fn resource_type(&self) -> ResourceType[src]

Get the resource type this table contains.

pub fn resource_ext(&self) -> String[src]

Deprecated, use resource_type() instead.

Trait Implementations

impl Debug for DRSTable[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.