pub struct Field { /* private fields */ }Expand description
A managed field (FieldInfo*).
Implementations§
Source§impl Field
impl Field
pub fn as_ptr(&self) -> Ptr
pub fn name(&self) -> &'static str
Sourcepub fn offset(&self) -> usize
pub fn offset(&self) -> usize
The byte offset from the start of an object (for instance fields), with
read_field/write_field.
pub fn is_static(&self) -> bool
Trait Implementations§
impl Copy for Field
impl Send for Field
impl Sync for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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