Skip to content

Remove need to malloc a tree sequence #298

Closed
@molpopgen

Description

@molpopgen

We can simplify the initialization:

  1. MaybeUninit
  2. Call the init function
  3. MaybUninit::assume_init()

This removes an indirection and clarifies any safety
documentation: we don't have a pointer and the pub
API to create a treeseq is guaranteed to have called
the initialization code.a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions