pub enum Allocator {
Single,
Backtracking,
}Expand description
Which of the two allocators decides where the values go.
The rewrite, the checks and the moves are the same for both, since each hands back an
assign::Assignment and nothing after the decision asks which one made it.
Variants§
Single
The single pass of assign, which is what -O0 asks for.
Backtracking
The allocator of backtrack, which weighs what each value costs to keep in memory.
Trait Implementations§
impl Copy for Allocator
impl Eq for Allocator
impl StructuralPartialEq for Allocator
Auto Trait Implementations§
impl Freeze for Allocator
impl RefUnwindSafe for Allocator
impl Send for Allocator
impl Sync for Allocator
impl Unpin for Allocator
impl UnsafeUnpin for Allocator
impl UnwindSafe for Allocator
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