Trait CalyxAssignmentContainer

Source
pub trait CalyxAssignmentContainer {
    type AssignmentType;

    // Required method
    fn add(&self, assignment: Assignment<Self::AssignmentType>);

    // Provided method
    fn extend<I: IntoIterator<Item = Assignment<Self::AssignmentType>>>(
        &self,
        assignments: I,
    ) { ... }
}
Expand description

An abstraction over a calyx group for adding assignments.

Required Associated Types§

Required Methods§

Source

fn add(&self, assignment: Assignment<Self::AssignmentType>)

Inserts a single assignment.

Provided Methods§

Source

fn extend<I: IntoIterator<Item = Assignment<Self::AssignmentType>>>( &self, assignments: I, )

Inserts a set of assignment.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§