pub struct Member<'input> { /* private fields */ }
Expand description
A member of a struct or union.
Implementations§
Source§impl<'input> Member<'input>
impl<'input> Member<'input>
Sourcepub fn type_offset(&self) -> TypeOffset
pub fn type_offset(&self) -> TypeOffset
The debuginfo offset of the type of this member.
Sourcepub fn ty<'a>(
&self,
hash: &'a FileHash<'input>,
) -> Option<Cow<'a, Type<'input>>>
pub fn ty<'a>( &self, hash: &'a FileHash<'input>, ) -> Option<Cow<'a, Type<'input>>>
The type of this member.
Sourcepub fn bit_offset(&self) -> u64
pub fn bit_offset(&self) -> u64
The offset in bits of this member.
Trait Implementations§
Auto Trait Implementations§
impl<'input> Freeze for Member<'input>
impl<'input> RefUnwindSafe for Member<'input>
impl<'input> Send for Member<'input>
impl<'input> Sync for Member<'input>
impl<'input> Unpin for Member<'input>
impl<'input> UnwindSafe for Member<'input>
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