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§
type AssignmentType
Required Methods§
Sourcefn add(&self, assignment: Assignment<Self::AssignmentType>)
fn add(&self, assignment: Assignment<Self::AssignmentType>)
Inserts a single assignment.
Provided Methods§
Sourcefn extend<I: IntoIterator<Item = Assignment<Self::AssignmentType>>>(
&self,
assignments: I,
)
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.