pub struct RecordedModule {
pub function: FunctionProto,
pub sub_functions: Vec<FunctionProto>,
}Expand description
Hand-off bundle between the DSL Graph (recording surface) and
the compiler (consumer).
Fields§
§function: FunctionProtoThe root recorded FunctionProto body. Top-level
with_module(self.name(), …) wraps fold into this entry.
sub_functions: Vec<FunctionProto>Sub-functions created by nested with_module(name, …)
calls. Each becomes its own FunctionProto in the compiled
ModelProto.functions[1..] so the compiler + runtime can
chase them via ai.bytesandbrains.module CALL NodeProtos
emitted in function (or in other sub-functions).
Trait Implementations§
Source§impl Debug for RecordedModule
impl Debug for RecordedModule
Source§impl Default for RecordedModule
impl Default for RecordedModule
Source§fn default() -> RecordedModule
fn default() -> RecordedModule
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RecordedModule
impl RefUnwindSafe for RecordedModule
impl Send for RecordedModule
impl Sync for RecordedModule
impl Unpin for RecordedModule
impl UnsafeUnpin for RecordedModule
impl UnwindSafe for RecordedModule
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