From f2f8f0ce9e535f241f3a2508bacd1e9f8a598faa Mon Sep 17 00:00:00 2001 From: molpopgen Date: Thu, 24 Mar 2022 07:34:07 -0700 Subject: [PATCH] Change order of generics to match argument order for all "add" functions of a TableCollection. Closes #220 --- src/table_collection.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/table_collection.rs b/src/table_collection.rs index c51c3d144..db2950652 100644 --- a/src/table_collection.rs +++ b/src/table_collection.rs @@ -231,7 +231,7 @@ impl TableCollection { } /// Add a row to the individual table - pub fn add_individual, L: Into>( + pub fn add_individual, I: Into>( &mut self, flags: tsk_flags_t, location: &[L], @@ -254,8 +254,8 @@ impl TableCollection { /// Add a row with metadata to the individual table pub fn add_individual_with_metadata< - I: Into, L: Into, + I: Into, M: IndividualMetadata, >( &mut self, @@ -356,7 +356,7 @@ impl TableCollection { } /// Add a row to the node table - pub fn add_node, POP: Into, T: Into