pub struct SlotContents {
pub components: HashMap<String, HashMap<String, HashMap<String, String>>>,
pub profile: HashMap<String, HashMap<String, String>>,
}Expand description
Slot-variant file contents, read by the host and handed to crate::compile — the slot
counterpart of the step_contents map, and for the same reason: core is sans-IO, so every
authored file is read by the caller and passed in.
Keys mirror where the declaration lives, because the two layers are addressed separately all the way into the IR.
Fields§
§components: HashMap<String, HashMap<String, HashMap<String, String>>>component id -> slot name -> variant key -> raw authored content.
profile: HashMap<String, HashMap<String, String>>profile-level slot name -> variant key -> raw authored content.
Trait Implementations§
Source§impl Clone for SlotContents
impl Clone for SlotContents
Source§impl Debug for SlotContents
impl Debug for SlotContents
Auto Trait Implementations§
impl Freeze for SlotContents
impl RefUnwindSafe for SlotContents
impl Send for SlotContents
impl Sync for SlotContents
impl Unpin for SlotContents
impl UnsafeUnpin for SlotContents
impl UnwindSafe for SlotContents
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