[][src]Struct pelite::resources::group::GroupResource

pub struct GroupResource<'a> { /* fields omitted */ }

Group resources, Icons and Cursors.

Methods

impl<'a> GroupResource<'a>[src]

pub fn new(
    resources: Resources<'a>,
    bytes: &'a [u8]
) -> Result<GroupResource<'a>, Error>
[src]

Parses the GroupResource from the byte slice.

The pixel data of the group resource is stored in separate data entries, requiring the resources to access.

pub fn header(&self) -> &'a GRPICONDIR[src]

Gets the Group header.

pub fn entries(&self) -> &'a [GRPICONDIRENTRY][src]

Gets the Group entries.

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

Gets the Group resource type.

pub fn image(&self, id: u16) -> Result<&'a [u8], FindError>[src]

Gets the image data for the given icon id.

pub fn write(&self, dest: &mut dyn Write) -> Result<()>[src]

Reassemble the file.

Trait Implementations

impl<'a> Clone for GroupResource<'a>[src]

impl<'a> Copy for GroupResource<'a>[src]

impl<'_> Debug for GroupResource<'_>[src]

impl<'_> Serialize for GroupResource<'_>[src]

Auto Trait Implementations

impl<'a> Sync for GroupResource<'a>

impl<'a> Send for GroupResource<'a>

impl<'a> Unpin for GroupResource<'a>

impl<'a> UnwindSafe for GroupResource<'a>

impl<'a> RefUnwindSafe for GroupResource<'a>

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for 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.

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

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

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