Struct Struct
pub struct Struct { /* private fields */ }Expand description
This structure represents a struct-like type which can be:
DW_TAG_class_typeDW_TAG_structure_typeDW_TAG_union_type
Implementations§
§impl Struct
impl Struct
pub fn set_size(&mut self, size: u64)
pub fn set_size(&mut self, size: u64)
Define the overall size which is equivalent to the sizeof of the current
type.
This function defines the DW_AT_byte_size attribute
pub fn add_member(&mut self, name: &str, ty: &mut dyn EditorType) -> Member
pub fn add_member(&mut self, name: &str, ty: &mut dyn EditorType) -> Member
Add a member to the current struct-like
pub fn add_member_at_offset(
&mut self,
name: &str,
ty: &mut dyn EditorType,
offset: u64,
) -> Member
pub fn add_member_at_offset( &mut self, name: &str, ty: &mut dyn EditorType, offset: u64, ) -> Member
Add a member to the current struct-like at the specified offset
Trait Implementations§
§impl EditorType for Struct
impl EditorType for Struct
fn pointer_to(&self) -> Pointer
Auto Trait Implementations§
impl Freeze for Struct
impl !RefUnwindSafe for Struct
impl !Send for Struct
impl !Sync for Struct
impl Unpin for Struct
impl UnsafeUnpin for Struct
impl UnwindSafe for Struct
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