[−][src]Struct genie_drs::DRSTable
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
Auto Trait Implementations
impl RefUnwindSafe for DRSTable
impl Send for DRSTable
impl Sync for DRSTable
impl Unpin for DRSTable
impl UnwindSafe for DRSTable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,