pub struct CompiledGraph { /* private fields */ }Expand description
A backend-neutral compiled semantic graph with runtime-private execution staging.
Public consumers inspect only the immutable semantic program and its
process-local tensor bindings. Native execution staging remains owned by
tenferro-runtime and is removed in Phase 5.
Implementations§
Source§impl CompiledGraph
impl CompiledGraph
Sourcepub fn program(&self) -> &SemanticProgram
pub fn program(&self) -> &SemanticProgram
Borrow the immutable backend-neutral semantic program.
Sourcepub fn bindings(&self) -> &ProgramBindings
pub fn bindings(&self) -> &ProgramBindings
Borrow tensor defaults and large constants kept outside semantic structure.
Sourcepub fn input_count(&self) -> usize
pub fn input_count(&self) -> usize
Return the number of ordered semantic inputs.
Sourcepub fn output_count(&self) -> usize
pub fn output_count(&self) -> usize
Return the number of ordered semantic outputs.
Trait Implementations§
Source§impl Clone for CompiledGraph
impl Clone for CompiledGraph
Source§fn clone(&self) -> CompiledGraph
fn clone(&self) -> CompiledGraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompiledGraph
impl !RefUnwindSafe for CompiledGraph
impl Send for CompiledGraph
impl Sync for CompiledGraph
impl Unpin for CompiledGraph
impl UnsafeUnpin for CompiledGraph
impl !UnwindSafe for CompiledGraph
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more