pub struct Union { /* private fields */ }Expand description
Represents a Union type.
Implementations§
Source§impl Union
impl Union
Sourcepub fn new(
reader: &mut Reader<'_>,
file_header: &FileHeader,
type_header: Header,
) -> BTFResult<Self>
pub fn new( reader: &mut Reader<'_>, file_header: &FileHeader, type_header: Header, ) -> BTFResult<Self>
Creates a new $name object
Sourcepub fn member_list(&self) -> &MemberList
pub fn member_list(&self) -> &MemberList
Returns the $data_name field of the type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Union
impl RefUnwindSafe for Union
impl Send for Union
impl Sync for Union
impl Unpin for Union
impl UnwindSafe for Union
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