pub struct Resource {
pub type_: String,
pub data: Vec<u8>,
pub id: i16,
pub name: Option<String>,
pub attr: u8,
}Expand description
A resource stored within a resource fork (Resource).
Fields§
§type_: StringThe resource type (type).
data: Vec<u8>The resource data (data).
id: i16The resource ID (id).
name: Option<String>The resource name, if it has one (name).
attr: u8The attributes (attr).
Trait Implementations§
impl Eq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Forget for Resource
impl Freeze for Resource
impl Move for Resource
impl RefUnwindSafe for Resource
impl Send for Resourcewhere
RawVecInner: Send,
impl Sync for Resourcewhere
RawVecInner: Sync,
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resourcewhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.