Struct move_binary_format::file_format::StructDefinition  
source · [−]pub struct StructDefinition {
    pub struct_handle: StructHandleIndex,
    pub field_information: StructFieldInformation,
}Expand description
A StructDefinition is a type definition. It either indicates it is native or defines all the
user-specified fields declared on the type.
Fields
struct_handle: StructHandleIndexThe StructHandle for this StructDefinition. This has the name and the abilities
for the type.
field_information: StructFieldInformationContains either
- Information indicating the struct is native and has no accessible fields
- Information indicating the number of fields and the start FieldDefinitions
Implementations
sourceimpl StructDefinition
 
impl StructDefinition
pub fn declared_field_count(&self) -> PartialVMResult<MemberCount>
pub fn field(&self, offset: usize) -> Option<&FieldDefinition>
Trait Implementations
sourceimpl Clone for StructDefinition
 
impl Clone for StructDefinition
sourcefn clone(&self) -> StructDefinition
 
fn clone(&self) -> StructDefinition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for StructDefinition
 
impl Debug for StructDefinition
sourceimpl PartialEq<StructDefinition> for StructDefinition
 
impl PartialEq<StructDefinition> for StructDefinition
sourcefn eq(&self, other: &StructDefinition) -> bool
 
fn eq(&self, other: &StructDefinition) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &StructDefinition) -> bool
 
fn ne(&self, other: &StructDefinition) -> bool
This method tests for !=.
impl Eq for StructDefinition
impl StructuralEq for StructDefinition
impl StructuralPartialEq for StructDefinition
Auto Trait Implementations
impl RefUnwindSafe for StructDefinition
impl Send for StructDefinition
impl Sync for StructDefinition
impl Unpin for StructDefinition
impl UnwindSafe for StructDefinition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    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