pub struct Allocation {
pub assignment: Assignment,
pub edits: Vec<Edit>,
}Expand description
What allocating a function produced.
The moves are handed back rather than written into the function because a move is an
instruction and an instruction belongs to a target, which spec/10-backend.md section 10.8
says this crate holds nothing of. The consumer turns each one into whatever its target moves a
register with.
Fields§
§assignment: AssignmentWhere every value of the function went, which is what the frame layout reads.
edits: Vec<Edit>The moves the places do not already make true, in the order they have to be made in.
Trait Implementations§
Source§impl Clone for Allocation
impl Clone for Allocation
Source§fn clone(&self) -> Allocation
fn clone(&self) -> Allocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Allocation
impl RefUnwindSafe for Allocation
impl Send for Allocation
impl Sync for Allocation
impl Unpin for Allocation
impl UnsafeUnpin for Allocation
impl UnwindSafe for Allocation
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