#[repr(C)]pub struct FuncDescriptor {
pub name: &'static str,
pub canonical_iri: CanonicalIri,
pub stable_id: StableFuncId,
pub params: &'static [ParamSpec],
pub output_kind: PrimitiveKind,
pub required_output_elems: u32,
pub effects: EffectSet,
pub determinism: DeterminismGuarantee,
pub reversibility: ReversibilityKind,
pub envelope: ResourceEnvelope,
pub contract: OntologicalContract,
}Expand description
Static descriptor for a single extension function.
Fields§
§name: &'static strShort function name within its sub-namespace (e.g. "verlet_step").
canonical_iri: CanonicalIriGlobally unique canonical IRI + q_hash.
stable_id: StableFuncIdProvider-scoped stable (sub_namespace_id, func_id).
params: &'static [ParamSpec]Static parameter specifications.
output_kind: PrimitiveKindOutput element primitive kind written to CallerOutputSlice.
required_output_elems: u32Exact or worst-case number of output elements required per call.
effects: EffectSetDeclared effect bitmask.
determinism: DeterminismGuaranteeDeclared determinism guarantee.
reversibility: ReversibilityKindDeclared reversibility / undo classification.
envelope: ResourceEnvelopeWorst-case resource envelope enforced at admission and runtime.
contract: OntologicalContractSelf-describing ontological contract and NQuin48 span offsets.
Implementations§
Source§impl FuncDescriptor
impl FuncDescriptor
Sourcepub const fn async_class(&self) -> AsyncExecutionClass
pub const fn async_class(&self) -> AsyncExecutionClass
Returns the synchronous vs bounded-async execution classification encoded in envelope.flags.
Source§impl FuncDescriptor
impl FuncDescriptor
Sourcepub const fn const_new(
name: &'static str,
canonical_iri_str: &'static str,
stable_id: StableFuncId,
schema_sig_str: &str,
params: &'static [ParamSpec],
output_kind: PrimitiveKind,
required_output_elems: u32,
effects: EffectSet,
determinism: DeterminismGuarantee,
reversibility: ReversibilityKind,
envelope: ResourceEnvelope,
pre_span: (u32, u32),
post_span: (u32, u32),
inv_span: (u32, u32),
) -> Self
pub const fn const_new( name: &'static str, canonical_iri_str: &'static str, stable_id: StableFuncId, schema_sig_str: &str, params: &'static [ParamSpec], output_kind: PrimitiveKind, required_output_elems: u32, effects: EffectSet, determinism: DeterminismGuarantee, reversibility: ReversibilityKind, envelope: ResourceEnvelope, pre_span: (u32, u32), post_span: (u32, u32), inv_span: (u32, u32), ) -> Self
Compile-time constructor that computes CanonicalIri, schema_hash, and the
canonical 32-byte OntologicalContract::canonical_digest automatically.
Sourcepub const fn const_new_with_async(
name: &'static str,
canonical_iri_str: &'static str,
stable_id: StableFuncId,
schema_sig_str: &str,
params: &'static [ParamSpec],
output_kind: PrimitiveKind,
required_output_elems: u32,
effects: EffectSet,
determinism: DeterminismGuarantee,
reversibility: ReversibilityKind,
async_class: AsyncExecutionClass,
envelope: ResourceEnvelope,
pre_span: (u32, u32),
post_span: (u32, u32),
inv_span: (u32, u32),
) -> Self
pub const fn const_new_with_async( name: &'static str, canonical_iri_str: &'static str, stable_id: StableFuncId, schema_sig_str: &str, params: &'static [ParamSpec], output_kind: PrimitiveKind, required_output_elems: u32, effects: EffectSet, determinism: DeterminismGuarantee, reversibility: ReversibilityKind, async_class: AsyncExecutionClass, envelope: ResourceEnvelope, pre_span: (u32, u32), post_span: (u32, u32), inv_span: (u32, u32), ) -> Self
Compile-time constructor that additionally encodes AsyncExecutionClass into envelope.flags.