Skip to content

remove table lifetime annotations #373

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Nov 4, 2022

Conversation

molpopgen
Copy link
Member

A WIP to remove lifetime annotations from all table types
and replace with NonNull instead.

@molpopgen molpopgen force-pushed the remove_table_lifetime_annotations branch from 3c36247 to 060c12d Compare November 4, 2022 17:00
* Types like EdgeTable no longer require lifetimes.
* tskit::table_views::TableViews is now a Deref
  target of TableCollection and TreeSequence.
* This Deref target replaces the behaviors
  of the TableAccess and NodeListGenerator
  traits, which have been removed.
* TableViews is a DerefMut target
  of TableCollection.
* The removed traits affect the contents
  of the crate prelude.
* Some code that would not compile due
  to dropped temporaries will now compile.
  (Doc tests updated accordingly.)
* The new fn nodes_mut addresses API breakage.

These changes are a BIG WIN for overall design.

BREAKING CHANGE: traits replaced with Deref targets
@molpopgen molpopgen force-pushed the remove_table_lifetime_annotations branch from ada5e08 to d09ae95 Compare November 4, 2022 17:53
@molpopgen molpopgen marked this pull request as ready for review November 4, 2022 18:11
@molpopgen molpopgen merged commit f8a7814 into main Nov 4, 2022
@molpopgen molpopgen deleted the remove_table_lifetime_annotations branch November 4, 2022 18:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant