pub struct GroupResource<'a> { /* private fields */ }Expand description
Group resources, Icons and Cursors.
Implementations§
Source§impl<'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§
Source§impl<'a> Clone for GroupResource<'a>
impl<'a> Clone for GroupResource<'a>
Source§fn clone(&self) -> GroupResource<'a>
fn clone(&self) -> GroupResource<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GroupResource<'_>
impl Debug for GroupResource<'_>
impl<'a> Copy for GroupResource<'a>
Auto Trait Implementations§
impl<'a> Freeze for GroupResource<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more