pub struct IRCompute {
pub node_type: &'static str,
pub source_line: u32,
pub source_column: u32,
pub name: String,
pub shield_ref: String,
pub parameters: Vec<IRParameter>,
pub return_type: String,
pub body: Option<IRExpr>,
}Fields§
§node_type: &'static str§source_line: u32§source_column: u32§name: String§shield_ref: String§parameters: Vec<IRParameter>v2.67.0 — typed parameters. ADDITIVE (skip_serializing_if), so every
pre-111 program’s IR JSON stays byte-identical.
return_type: Stringv2.67.0 — the declared result type.
body: Option<IRExpr>v2.67.0 — the lowered v2.26.0 expression the runtime evaluates natively.
None ⇒ the apply is refused (axon-T941): a compute with no body cannot
compute, and binding a placeholder string in its place is how the old
runtime handed a downstream step the text "compute:Name(args)" where it
expected a number.
Trait Implementations§
Source§impl Serialize for IRCompute
impl Serialize for IRCompute
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 IRCompute
impl RefUnwindSafe for IRCompute
impl Send for IRCompute
impl Sync for IRCompute
impl Unpin for IRCompute
impl UnsafeUnpin for IRCompute
impl UnwindSafe for IRCompute
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