pub struct LayoutInput<A> {
pub state_objects: Vec<StateObjectLayout<A>>,
pub working_addresses: Vec<A>,
pub sparse_addresses: Vec<A>,
pub unpacked_arrays: FxHashMap<A, UnpackedArrayLayout>,
pub requirements: LayoutRequirements<A>,
pub ff_referenced_addresses: FxHashSet<A>,
pub num_events: usize,
pub runtime_event_sites: Vec<RuntimeEventSite>,
}Expand description
Complete, backend-independent input to physical layout construction.
The compiler facade adapts its phase artifacts into this value. Layout
construction therefore never needs to inspect frontend IR, optimizer plans,
or a mixed compiler Program.
Fields§
§state_objects: Vec<StateObjectLayout<A>>§working_addresses: Vec<A>§sparse_addresses: Vec<A>§unpacked_arrays: FxHashMap<A, UnpackedArrayLayout>§requirements: LayoutRequirements<A>§ff_referenced_addresses: FxHashSet<A>§num_events: usize§runtime_event_sites: Vec<RuntimeEventSite>Trait Implementations§
Source§impl<A: Clone> Clone for LayoutInput<A>
impl<A: Clone> Clone for LayoutInput<A>
Source§fn clone(&self) -> LayoutInput<A>
fn clone(&self) -> LayoutInput<A>
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<A> Freeze for LayoutInput<A>where
Vec<StateObjectLayout<A>>: Freeze,
Vec<A>: Freeze,
HashMap<A, UnpackedArrayLayout, BuildHasherDefault<FxHasher>>: Freeze,
LayoutRequirements<A>: Freeze,
HashSet<A, BuildHasherDefault<FxHasher>>: Freeze,
impl<A> RefUnwindSafe for LayoutInput<A>where
Vec<StateObjectLayout<A>>: RefUnwindSafe,
Vec<A>: RefUnwindSafe,
HashMap<A, UnpackedArrayLayout, BuildHasherDefault<FxHasher>>: RefUnwindSafe,
LayoutRequirements<A>: RefUnwindSafe,
HashSet<A, BuildHasherDefault<FxHasher>>: RefUnwindSafe,
impl<A> Send for LayoutInput<A>where
Vec<StateObjectLayout<A>>: Send,
Vec<A>: Send,
HashMap<A, UnpackedArrayLayout, BuildHasherDefault<FxHasher>>: Send,
LayoutRequirements<A>: Send,
HashSet<A, BuildHasherDefault<FxHasher>>: Send,
impl<A> Sync for LayoutInput<A>where
Vec<StateObjectLayout<A>>: Sync,
Vec<A>: Sync,
HashMap<A, UnpackedArrayLayout, BuildHasherDefault<FxHasher>>: Sync,
LayoutRequirements<A>: Sync,
HashSet<A, BuildHasherDefault<FxHasher>>: Sync,
impl<A> Unpin for LayoutInput<A>where
Vec<StateObjectLayout<A>>: Unpin,
Vec<A>: Unpin,
HashMap<A, UnpackedArrayLayout, BuildHasherDefault<FxHasher>>: Unpin,
LayoutRequirements<A>: Unpin,
HashSet<A, BuildHasherDefault<FxHasher>>: Unpin,
impl<A> UnsafeUnpin for LayoutInput<A>where
Vec<StateObjectLayout<A>>: UnsafeUnpin,
Vec<A>: UnsafeUnpin,
HashMap<A, UnpackedArrayLayout, BuildHasherDefault<FxHasher>>: UnsafeUnpin,
LayoutRequirements<A>: UnsafeUnpin,
HashSet<A, BuildHasherDefault<FxHasher>>: UnsafeUnpin,
impl<A> UnwindSafe for LayoutInput<A>where
Vec<StateObjectLayout<A>>: UnwindSafe,
Vec<A>: UnwindSafe,
HashMap<A, UnpackedArrayLayout, BuildHasherDefault<FxHasher>>: UnwindSafe,
LayoutRequirements<A>: UnwindSafe,
HashSet<A, BuildHasherDefault<FxHasher>>: UnwindSafe,
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