pub struct StructureBatch<R: Runtime<DType = DType>> { /* private fields */ }Expand description
Persistent checked law definitions without evolving component storage.
Implementations§
Source§impl<R: Runtime<DType = DType>> StructureBatch<R>
impl<R: Runtime<DType = DType>> StructureBatch<R>
Sourcepub fn with_gate_actuators(
&self,
definitions: Vec<GateActuatorDefinition>,
initial_states: Vec<GateActuatorInitialState>,
schedule: GateActuatorSchedule,
) -> Result<GateActuatorBatch<R>, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
pub fn with_gate_actuators(
&self,
definitions: Vec<GateActuatorDefinition>,
initial_states: Vec<GateActuatorInitialState>,
schedule: GateActuatorSchedule,
) -> Result<GateActuatorBatch<R>, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
Bind an explicit ideal finite-rate response to an ordered actual-gate subset.
Source§impl<R: Runtime<DType = DType>> StructureBatch<R>
impl<R: Runtime<DType = DType>> StructureBatch<R>
Sourcepub fn new(
client: R::Client,
elements: Vec<StructureElement>,
) -> Result<Self, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + CorrectlyRoundedOps<R> + ReduceOps<R> + ScalarOps<R> + TypeConversionOps<R> + UnaryOps<R>,
pub fn new(
client: R::Client,
elements: Vec<StructureElement>,
) -> Result<Self, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + CorrectlyRoundedOps<R> + ReduceOps<R> + ScalarOps<R> + TypeConversionOps<R> + UnaryOps<R>,
Check explicit law geometry, applicability, identities, and ideal direction policies.
Rejects a culvert law. Build a batch that holds one with StructureBatch::with_culverts.
Sourcepub fn with_culverts(
client: R::Client,
elements: Vec<StructureElement>,
) -> Result<Self, StructureError>where
R::Client: CulvertClient<R>,
pub fn with_culverts(
client: R::Client,
elements: Vec<StructureElement>,
) -> Result<Self, StructureError>where
R::Client: CulvertClient<R>,
Check every law, including culverts, and upload the culvert rows.
A culvert needs certified roots and quadrature on the runtime, which
CulvertClient names. StructureBatch::new rejects culverts.
Each culvert declares an end for each admitted direction and no other. Rejects an inlet
whose headwater does not certifiably rise across its transition, naming the element.
Rejects a runtime without the culvert barrel’s F64 contracts.
Sourcepub fn elements(&self) -> &[StructureElement]
pub fn elements(&self) -> &[StructureElement]
Immutable concrete definitions in original numerical order.
Sourcepub fn geometry(&self) -> Vec<StructureGeometryReport>
pub fn geometry(&self) -> Vec<StructureGeometryReport>
Declared and effective geometry of every element, in element order.
Sourcepub fn propose(
&self,
heads: &[StructureHeads],
) -> Result<StructureProposal<R>, StructureError>where
R::Client: CumulativeOps<R> + BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + CorrectlyRoundedOps<R> + IndexingOps<R> + ReduceOps<R> + ScalarOps<R> + ShapeOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R> + Interp1dAlgorithms<R>,
pub fn propose(
&self,
heads: &[StructureHeads],
) -> Result<StructureProposal<R>, StructureError>where
R::Client: CumulativeOps<R> + BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + CorrectlyRoundedOps<R> + IndexingOps<R> + ReduceOps<R> + ScalarOps<R> + ShapeOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R> + Interp1dAlgorithms<R>,
Evaluate original supported heads without mutating definitions or earlier proposals.
Sourcepub fn propose_with_operations(
&self,
heads: &[StructureHeads],
operations: &[StructureOperation],
) -> Result<StructureProposal<R>, StructureError>where
R::Client: CumulativeOps<R> + BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + CorrectlyRoundedOps<R> + IndexingOps<R> + ReduceOps<R> + ScalarOps<R> + ShapeOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R> + Interp1dAlgorithms<R>,
pub fn propose_with_operations(
&self,
heads: &[StructureHeads],
operations: &[StructureOperation],
) -> Result<StructureProposal<R>, StructureError>where
R::Client: CumulativeOps<R> + BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + CorrectlyRoundedOps<R> + IndexingOps<R> + ReduceOps<R> + ScalarOps<R> + ShapeOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R> + Interp1dAlgorithms<R>,
Evaluate complete identity-bound device operations without mutating earlier proposals.
Source§impl<R: Runtime<DType = DType>> StructureBatch<R>
impl<R: Runtime<DType = DType>> StructureBatch<R>
Sourcepub fn with_operating_controls(
&self,
definitions: Vec<OperatingControlDefinition>,
initial_states: Vec<ControlInitialState>,
schedule: ControlDecisionSchedule,
timing: SampledControlTiming,
) -> Result<OperatingControlBatch<R>, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
pub fn with_operating_controls(
&self,
definitions: Vec<OperatingControlDefinition>,
initial_states: Vec<ControlInitialState>,
schedule: ControlDecisionSchedule,
timing: SampledControlTiming,
) -> Result<OperatingControlBatch<R>, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
Bind explicit sampled relay definitions to actual devices and complete initial memory.
Source§impl<R: Runtime<DType = DType>> StructureBatch<R>
impl<R: Runtime<DType = DType>> StructureBatch<R>
Sourcepub fn with_gate_trajectories(
&self,
assignments: Vec<GateTrajectoryAssignment>,
) -> Result<GateTrajectoryBatch<R>, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
pub fn with_gate_trajectories(
&self,
assignments: Vec<GateTrajectoryAssignment>,
) -> Result<GateTrajectoryBatch<R>, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
Bind every gate exactly once in its original subsequence order.
Sourcepub fn with_gate_trajectory_subset(
&self,
assignments: Vec<GateTrajectoryAssignment>,
) -> Result<GateTrajectoryBatch<R>, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
pub fn with_gate_trajectory_subset(
&self,
assignments: Vec<GateTrajectoryAssignment>,
) -> Result<GateTrajectoryBatch<R>, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
Bind a nonempty unique gate subset in complete original structure order.
Unassigned elements retain no prescribed authority. Their point operations remain explicit. Closed common support can contain one point. No trajectory extrapolation applies.
Source§impl<R: Runtime<DType = DType>> StructureBatch<R>
impl<R: Runtime<DType = DType>> StructureBatch<R>
Sourcepub fn with_operating_sources(
&self,
sources: Vec<OperatingSourceBinding<'_, R>>,
) -> Result<OperatingSourceBatch<R>, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
pub fn with_operating_sources(
&self,
sources: Vec<OperatingSourceBinding<'_, R>>,
) -> Result<OperatingSourceBatch<R>, StructureError>where
R::Client: BinaryOps<R> + CompareOps<R> + ConditionalOps<R> + ReduceOps<R> + ScalarOps<R> + TwoSumOps<R> + TypeConversionOps<R> + UnaryOps<R>,
Bind one explicit writer per original element without capturing dynamic continuation.
Trait Implementations§
Auto Trait Implementations§
impl<R> !RefUnwindSafe for StructureBatch<R>
impl<R> !UnwindSafe for StructureBatch<R>
impl<R> Forget for StructureBatch<R>
impl<R> Freeze for StructureBatch<R>
impl<R> Move for StructureBatch<R>
impl<R> Send for StructureBatch<R>
impl<R> Sync for StructureBatch<R>
impl<R> Unpin for StructureBatch<R>
impl<R> UnsafeUnpin for StructureBatch<R>where
Arc<TensorStructureContext<R>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
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> ⓘ
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> ⓘ
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.