-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parameterize TypeRow by element type (#256)
* PrimType trait requires Debug, Clone, 'static; remove const CLASSIC: bool * Use PrimType constraint for all TypeRow's; turn off pyo3 generation * Add SimpleRow + ClassicRow type aliases * Add SerializableType trait/constraint within types/simple/serialize.rs (with CLASSIC) * Add TypeRow::{try_convert_elems, into_owned, map_into} * Constant Sums must be all-classic * Remove ConstTypeError::LinearTypeDisallowed (now statically impossible) * Serialization: SerSimpleType now contains only SerSimpleTypes --> recurse (building whole SerSimpleType structure) rather than serializing layers iteratively * Drop some now-unnecessary into's * Remove now-unnecessary hoop-jumping in Signature::get for 'other' ports * Add classic_row! macro paralleling type_row! * Test new_tuple and new_sum
- Loading branch information
Showing
17 changed files
with
432 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.