pub struct ProgramIR {
pub components: BTreeMap<TypeId, ProgramComponent>,
pub main_component_type_id: TypeId,
pub type_table: BTreeMap<TypeId, TypeDefinition>,
pub assets_dirs: Vec<String>,
}Expand description
Runtime-facing semantic program model derived from a rich PaxManifest.
ProgramIR is a transitional intermediate representation: it preserves the
semantic program structure while stripping obviously source-only and
compiler-only manifest data. Debug/designtime flows may continue to mount
rich manifests directly until later phases cut execution over to ProgramIR.
Fields§
§components: BTreeMap<TypeId, ProgramComponent>§main_component_type_id: TypeId§type_table: BTreeMap<TypeId, TypeDefinition>§assets_dirs: Vec<String>Implementations§
Source§impl ProgramIR
impl ProgramIR
pub fn from_manifest(manifest: &PaxManifest) -> ProgramIR
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ProgramIR
impl<'de> Deserialize<'de> for ProgramIR
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProgramIR, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProgramIR, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PaxManifest> for ProgramIR
impl From<&PaxManifest> for ProgramIR
Source§fn from(manifest: &PaxManifest) -> ProgramIR
fn from(manifest: &PaxManifest) -> ProgramIR
Converts to this type from the input type.
Source§impl Serialize for ProgramIR
impl Serialize for ProgramIR
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ProgramIR
impl RefUnwindSafe for ProgramIR
impl Send for ProgramIR
impl Sync for ProgramIR
impl Unpin for ProgramIR
impl UnsafeUnpin for ProgramIR
impl UnwindSafe for ProgramIR
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.