pub struct TyEnv {
pub file: String,
pub mrs: IdVec<MrId, MemoryRegionDecl>,
pub pds: IdVec<PdId, ProtectionDomainDecl>,
pub chans: IdVec<ChanId, Channel>,
pub structs: IdVec<StructId, Struct>,
pub consts: IdVec<ConstId, Const>,
pub composition: Option<Composition>,
pub irq_ids: IdVec<PdId, Option<u32>>,
pub locals: IdVec<PdId, LocalVars>,
pub mappings: IdVec<MappingId, Mapping>,
pub ffis: IdVec<FfnId, ForeignFn>,
}Expand description
The typed environment: every declaration of the project, typed where
typing has something to say, the rest as rast resolved it.
Fields§
§file: StringThe .fis file, for diagnostics.
mrs: IdVec<MrId, MemoryRegionDecl>Memory regions, in source order.
pds: IdVec<PdId, ProtectionDomainDecl>Protection domains, in source order.
chans: IdVec<ChanId, Channel>Channels, each with its payload type.
structs: IdVec<StructId, Struct>System structs, laid out.
consts: IdVec<ConstId, Const>System consts, typed and folded.
composition: Option<Composition>The System = composition, if written.
irq_ids: IdVec<PdId, Option<u32>>Each PD’s IRQ channel id, for a PD with an IRQ. Deprecated, with
rast/mkids.rs: Microkit’s, not the language’s.
locals: IdVec<PdId, LocalVars>Each program’s local variables, typed, by its protection domain: its PD’s state.
mappings: IdVec<MappingId, Mapping>Every mapping: each channel buffer at its two ends, then each program’s own.
ffis: IdVec<FfnId, ForeignFn>Every foreign function some program calls, typed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TyEnv
impl RefUnwindSafe for TyEnv
impl Send for TyEnv
impl Sync for TyEnv
impl Unpin for TyEnv
impl UnsafeUnpin for TyEnv
impl UnwindSafe for TyEnv
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.