pub struct Access {
pub origin: Origin,
pub offset: Option<i64>,
pub size: Option<u64>,
pub tbaa: Option<Meta>,
pub restrict: Restrict,
pub volatile: bool,
}Expand description
One memory reference: which bytes an instruction touches and what it says about them.
Built by Alias::reads and Alias::writes rather than by hand, so that the size of a
load comes from the type it produces and the size of a memcpy comes from its access, and no
caller has to remember which.
Fields§
§origin: OriginThe object, or the address the walk stopped at.
offset: Option<i64>How many bytes past the start of that the reference begins, when the walk could tell.
size: Option<u64>How many bytes it covers, when that is known.
tbaa: Option<Meta>The type node the front end attached, if it attached one.
restrict: RestrictThe restrict scope the access is in.
volatile: boolWhether the access is volatile.
Implementations§
Source§impl Access
impl Access
Trait Implementations§
impl Copy for Access
impl Eq for Access
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnsafeUnpin for Access
impl UnwindSafe for Access
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