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