Skip to content

metadata retrieval requires ids not Into<ids> #249

Closed
@molpopgen

Description

@molpopgen

For example, from edge_table.rs:

    pub fn metadata<T: metadata::MetadataRoundtrip>(
        &'a self,
        row: EdgeId,
    ) -> Result<Option<T>, TskitError> {
        let buffer = metadata_to_vector!(self, row.0)?;
        decode_metadata_row!(T, buffer)
    }

The type of row should be E: Into<EdgeId>

Metadata

Metadata

Assignees

No one assigned

    Labels

    ergonomicsIssues/PRs related to API ergonomics

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions