union Overlay {
first: OverlayFirst,
second: OverlaySecond,
}
Expand description
Union of overlay layouts used in solver memory
As a memory optimization, some of the allocations in SolverMemoryInner
are overlapped. We only use one of these at a time, checked statically
using a mutable borrow.
Fields§
§first: OverlayFirst
Initial memory overlay layout
second: OverlaySecond
Layout which replaces the first once we can drop layer0_keys
Implementations§
Source§impl Overlay
impl Overlay
Sourcefn first(&mut self) -> &mut OverlayFirst
fn first(&mut self) -> &mut OverlayFirst
Access the first overlay layout, via a mutable reference
Sourcefn second(&mut self) -> &mut OverlaySecond
fn second(&mut self) -> &mut OverlaySecond
Access the second overlay layout, via a mutable reference
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Overlay
impl RefUnwindSafe for Overlay
impl Send for Overlay
impl Sync for Overlay
impl Unpin for Overlay
impl UnwindSafe for Overlay
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