Struct interpreter::object::layout::FieldLocation
source · pub struct FieldLocation {
pub offset: usize,
}
Expand description
A trivially copyable location for a field within a class Used by FieldRefTo to access the underlying data from a *const Object.
Fields§
§offset: usize
Trait Implementations§
source§impl Clone for FieldLocation
impl Clone for FieldLocation
source§fn clone(&self) -> FieldLocation
fn clone(&self) -> FieldLocation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FieldLocation
impl Debug for FieldLocation
impl Copy for FieldLocation
Auto Trait Implementations§
impl RefUnwindSafe for FieldLocation
impl Send for FieldLocation
impl Sync for FieldLocation
impl Unpin for FieldLocation
impl UnwindSafe for FieldLocation
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