pub struct TransformList { /* private fields */ }
Expand description

A list of tranformations to be applied to the FheProgram graph.

Implementations

Creates an empty transform list.

Pushes a transform into the list and returns the index of the pushed transform suitable for use in TransformNodeIndex::DeferredIndex.

Applies every transform in the list to the given graph. Resoves any deferred indices after placing nodes in the graph.

Panics

If any deferred index is out of bounds or refers to a previous operation that didn’t result in a node being added, this function will panic. For example, if an IRTransform::AppendAdd refers to the index of a IRTransform::RemoveEdge transform, a panic will result.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.