[][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.

Methods

impl DRSTable[src]

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

Get the number of resources in this table.

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_ext(&self) -> String[src]

Trait Implementations

impl Debug for DRSTable[src]

Auto Trait Implementations

impl Send for DRSTable

impl Sync for DRSTable

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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