Skip to main content

RuntimeProjection

Struct RuntimeProjection 

Source
pub struct RuntimeProjection { /* private fields */ }
Expand description

A validated target-specific runtime projection derived from resolved semantics.

Implementations§

Source§

impl RuntimeProjection

Source

pub fn try_new( target: BindingTarget, config: ProjectionConfig, semantic_fingerprint: SemanticSchemaFingerprint, handlers: &[ProjectionHandler], resources: &[CodeResourceDigest], models: BTreeMap<TypeId, ModelProjection>, structs: BTreeMap<StructId, StructProjection>, functions: BTreeMap<FunctionId, FunctionProjection>, playing_facts: BTreeMap<PlaysFactId, PlayingProjection>, emission: EmissionPlan, ) -> Result<Self, Diagnostic>

Validate a complete projection graph and compute its content-bound fingerprint.

Source

pub const fn target(&self) -> BindingTarget

Return the binding target.

Source

pub const fn config(&self) -> &ProjectionConfig

Return the exact projection configuration.

Source

pub const fn semantic_fingerprint(&self) -> &SemanticSchemaFingerprint

Return the source semantic schema fingerprint.

Source

pub const fn projection_fingerprint(&self) -> &BindingProjectionFingerprint

Return the content-bound target projection fingerprint.

Source

pub fn projected_token_identity( &self, kind: ProjectedTokenKind, ordinal: u32, ) -> Option<ProjectedTokenIdentity>

Resolve one generated-only token ordinal through canonical projection order.

Ordinals are zero-based within their kind. Models and functions follow their canonical identity-map order. Fields and roles follow model order and then the canonical order of that model’s token map. This method is the sole semantic owner of the ordinal algorithm used by native generated SDKs.

Source

pub fn projected_token_ordinal( &self, identity: &ProjectedTokenIdentity, ) -> Option<u32>

Resolve one semantic identity to its generated-only zero-based ordinal.

Returns None when the identity does not belong to this exact projection or its owner branding is inconsistent.

Source

pub fn generator_handlers(&self) -> &[ProjectionHandler]

Return the ordered handler evidence committed by the projection fingerprint.

Source

pub fn code_resources(&self) -> &[CodeResourceDigest]

Return the ordered code-resource evidence committed by the projection fingerprint.

Source

pub const fn models(&self) -> &BTreeMap<TypeId, ModelProjection>

Return projected models in canonical identity order.

Source

pub const fn structs(&self) -> &BTreeMap<StructId, StructProjection>

Return projected structs in canonical identity order.

Source

pub const fn functions(&self) -> &BTreeMap<FunctionId, FunctionProjection>

Return projected schema functions in canonical identity order.

Source

pub const fn playing_facts(&self) -> &BTreeMap<PlaysFactId, PlayingProjection>

Return effective per-player metadata keyed by exact playing identity.

Source

pub const fn emission(&self) -> &EmissionPlan

Return the shells-first generation schedule.

Trait Implementations§

Source§

impl Clone for RuntimeProjection

Source§

fn clone(&self) -> RuntimeProjection

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RuntimeProjection

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for RuntimeProjection

Source§

impl PartialEq for RuntimeProjection

Source§

fn eq(&self, other: &RuntimeProjection) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for RuntimeProjection

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for RuntimeProjection

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.