pub struct Member<'a> { /* private fields */ }
Implementations§
§impl Member<'_>
impl Member<'_>
pub fn bit_offset(&self) -> Result<u64, Error>
pub fn bit_offset(&self) -> Result<u64, Error>
Offset of the current member in bits the struct/union/class
This function differs from Member::offset
for aggregates using bit-field
declaration:
struct S {
int flag : 4;
int opt : 1
};
Usually, offset() * 8 == bit_offset()
pub fn is_external(&self) -> bool
pub fn is_declaration(&self) -> bool
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Member<'a>
impl<'a> !Send for Member<'a>
impl<'a> !Sync for Member<'a>
impl<'a> Unpin for Member<'a>
impl<'a> UnwindSafe for Member<'a>
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