pub struct Instance {
pub fixup_type: u16,
pub descriptor: Option<usize>,
pub data_offset: u32,
pub exported: bool,
pub guid: [u8; 16],
pub object: Option<Object>,
pub raw_image: Vec<u8>,
}Expand description
An object stored in the document, with its type, its GUID if it is exported, and its decoded values.
Fields§
§fixup_type: u16Index of the instance’s type in the EFIX type list (Document::fixup_type_guids).
descriptor: Option<usize>Index into Document::types; None when its EFIX type has no reflection entry (then it is not read).
data_offset: u32Offset of the instance from the start of the EBXD payload.
exported: boolWhether the instance is one of the document’s exported instances (the first ones the EFIX table lists), which carry a GUID in the 16 bytes before them.
guid: [u8; 16]The instance’s GUID if it is exported; zero otherwise.
object: Option<Object>The instance’s values; None when its type is unknown (Instance::descriptor is None).
raw_image: Vec<u8>The instance’s bytes as read (its type’s size): padding and unread fields are written back from here.
Trait Implementations§
impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl UnwindSafe for Instance
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