Struct native_windows_gui::RawResource [−][src]
pub struct RawResource { /* fields omitted */ }Expand description
Represents a raw handle to a embed resource. Manipulating raw resources is inherently unsafe.
RawResources are loaded using EmbedResource::raw and EmbedResource::raw_str
In order to access the raw resource data use as_mut_ptr() or as_mut_slice() and cast the pointer to your data type.
Implementations
Returns the system handle for the resource data
Returns the resource type set during texture loading
Return a const pointer to the resource.
Return the resource data as a byte slice. This is equivalent to using slice::from_raw_parts_mut
Auto Trait Implementations
impl RefUnwindSafe for RawResourceimpl !Send for RawResourceimpl !Sync for RawResourceimpl Unpin for RawResourceimpl UnwindSafe for RawResource