pub struct CompositeChiplet<F: TraceCompatibleField> { /* private fields */ }Expand description
Build-time composition of peer chiplets into a single unit.
Flattens into standard ChipletDef entries
for the prover, no protocol-level awareness
of hierarchy. Internal buses are namespaced
with "{name}::" to prevent cross-composite
collisions. External buses pass through
unchanged.
All chiplets within a composite are peers, no mandatory root.
Implementations§
Source§impl<F: TraceCompatibleField> CompositeChiplet<F>
impl<F: TraceCompatibleField> CompositeChiplet<F>
Sourcepub fn builder(name: &str) -> CompositeChipletBuilder<F>
pub fn builder(name: &str) -> CompositeChipletBuilder<F>
Start building a composite with the given namespace.
Sourcepub fn flatten_defs(&self) -> Result<Vec<ChipletDef<F>>>
pub fn flatten_defs(&self) -> Result<Vec<ChipletDef<F>>>
Produce fresh ChipletDefs for Program::chiplet_defs().
Sourcepub fn external_buses(&self) -> Vec<(String, PermutationCheckSpec)>
pub fn external_buses(&self) -> Vec<(String, PermutationCheckSpec)>
External buses for Program::permutation_checks().
These are main-trace-side specs, column indices reference the main trace, not any chiplet trace.
Trait Implementations§
Source§impl<F: TraceCompatibleField> Clone for CompositeChiplet<F>
impl<F: TraceCompatibleField> Clone for CompositeChiplet<F>
Auto Trait Implementations§
impl<F> Freeze for CompositeChiplet<F>
impl<F> !RefUnwindSafe for CompositeChiplet<F>
impl<F> Send for CompositeChiplet<F>
impl<F> Sync for CompositeChiplet<F>
impl<F> Unpin for CompositeChiplet<F>
impl<F> UnsafeUnpin for CompositeChiplet<F>
impl<F> !UnwindSafe for CompositeChiplet<F>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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