Back to Eqiora docs Skip to main content

AssemblyWork

Trait AssemblyWork 

pub trait AssemblyWork: Debug + Sync {
    // Required methods
    fn packet_set_identity(&self) -> AssemblyPacketSetIdentityV1;
    fn packet_count(&self) -> usize;
    fn evaluate(
        &self,
        packet_index: usize,
    ) -> Result<AssemblyPacket, Diagnostic>;
}
Description

Indexed pure local work evaluated by an assembly backend.

Required Methods§

fn packet_set_identity(&self) -> AssemblyPacketSetIdentityV1

Identity of the ordered entity set addressed by packet indices.

fn packet_count(&self) -> usize

Stable logical packet count for this assembly operation.

fn evaluate(&self, packet_index: usize) -> Result<AssemblyPacket, Diagnostic>

Evaluate one stable logical packet index without global side effects.

§Errors

Returns a numerical diagnostic from local geometry, coefficients, quadrature, or packet validation.

Implementors§