[−][src]Struct pelite::resources::group::GroupResource
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]
resources: Resources<'a>,
bytes: &'a [u8]
) -> Result<GroupResource<'a>, Error>
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]
fn clone(&self) -> GroupResource<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,