pub struct GroupResource<'a> { /* private fields */ }
Expand description
Group resources, Icons and Cursors.
Implementations
sourceimpl<'a> GroupResource<'a>
impl<'a> GroupResource<'a>
sourcepub fn new(
resources: Resources<'a>,
bytes: &'a [u8]
) -> Result<GroupResource<'a>, Error>
pub fn new(
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.
sourcepub fn header(&self) -> &'a GRPICONDIR
pub fn header(&self) -> &'a GRPICONDIR
Gets the Group header.
sourcepub fn entries(&self) -> &'a [GRPICONDIRENTRY]
pub fn entries(&self) -> &'a [GRPICONDIRENTRY]
Gets the Group entries.
sourcepub fn ty(&self) -> ResourceType
pub fn ty(&self) -> ResourceType
Gets the Group resource type.
Trait Implementations
sourceimpl<'a> Clone for GroupResource<'a>
impl<'a> Clone for GroupResource<'a>
sourcefn clone(&self) -> GroupResource<'a>
fn clone(&self) -> GroupResource<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GroupResource<'_>
impl Debug for GroupResource<'_>
impl<'a> Copy for GroupResource<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for GroupResource<'a>
impl<'a> Send for GroupResource<'a>
impl<'a> Sync for GroupResource<'a>
impl<'a> Unpin for GroupResource<'a>
impl<'a> UnwindSafe for GroupResource<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more