@@ -1085,7 +1085,7 @@ impl TableCollection {
10851085 self . provenances_mut ( ) . add_row ( record)
10861086 }
10871087
1088- /// Set the edge table from an [`OwningEdgeTable `](`crate::OwningEdgeTable `)
1088+ /// Set the edge table from an [`EdgeTable `](`crate::EdgeTable `)
10891089 ///
10901090 /// # Errors
10911091 ///
@@ -1096,15 +1096,15 @@ impl TableCollection {
10961096 /// ```rust
10971097 /// #
10981098 /// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1099- /// let mut edges = tskit::OwningEdgeTable ::default();
1099+ /// let mut edges = tskit::EdgeTable ::default();
11001100 /// edges.add_row(0., 1., 0, 12).unwrap();
11011101 /// tables.set_edges(&edges).unwrap();
11021102 /// assert_eq!(tables.edges().num_rows(), 1);
11031103 /// assert_eq!(tables.edges().child(0).unwrap(), 12);
11041104 /// # edges.clear().unwrap();
11051105 /// # assert_eq!(edges.num_rows(), 0);
11061106 /// ```
1107- pub fn set_edges ( & mut self , edges : & crate :: OwningEdgeTable ) -> TskReturnValue {
1107+ pub fn set_edges ( & mut self , edges : & crate :: EdgeTable ) -> TskReturnValue {
11081108 // SAFETY: neither self nor edges are possible
11091109 // to create with null pointers.
11101110 let rv = unsafe {
@@ -1122,7 +1122,7 @@ impl TableCollection {
11221122 handle_tsk_return_value ! ( rv)
11231123 }
11241124
1125- /// Set the node table from an [`OwningNodeTable `](`crate::OwningNodeTable `)
1125+ /// Set the node table from an [`NodeTable `](`crate::NodeTable `)
11261126 ///
11271127 /// # Errors
11281128 ///
@@ -1133,15 +1133,15 @@ impl TableCollection {
11331133 /// ```rust
11341134 /// #
11351135 /// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1136- /// let mut nodes = tskit::OwningNodeTable ::default();
1136+ /// let mut nodes = tskit::NodeTable ::default();
11371137 /// nodes.add_row(0, 10.0, -1, -1).unwrap();
11381138 /// tables.set_nodes(&nodes).unwrap();
11391139 /// assert_eq!(tables.nodes().num_rows(), 1);
11401140 /// assert_eq!(tables.nodes().time(0).unwrap(), 10.0);
11411141 /// # nodes.clear().unwrap();
11421142 /// # assert_eq!(nodes.num_rows(), 0);
11431143 /// ```
1144- pub fn set_nodes ( & mut self , nodes : & crate :: OwningNodeTable ) -> TskReturnValue {
1144+ pub fn set_nodes ( & mut self , nodes : & crate :: NodeTable ) -> TskReturnValue {
11451145 // SAFETY: neither self nor nodes are possible
11461146 // to create with null pointers.
11471147 let rv = unsafe {
@@ -1159,7 +1159,7 @@ impl TableCollection {
11591159 handle_tsk_return_value ! ( rv)
11601160 }
11611161
1162- /// Set the site table from an [`OwningSiteTable `](`crate::OwningSiteTable `)
1162+ /// Set the site table from an [`SiteTable `](`crate::SiteTable `)
11631163 ///
11641164 /// # Errors
11651165 ///
@@ -1170,15 +1170,15 @@ impl TableCollection {
11701170 /// ```rust
11711171 /// #
11721172 /// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1173- /// let mut sites = tskit::OwningSiteTable ::default();
1173+ /// let mut sites = tskit::SiteTable ::default();
11741174 /// sites.add_row(11.0, None).unwrap();
11751175 /// tables.set_sites(&sites).unwrap();
11761176 /// assert_eq!(tables.sites().num_rows(), 1);
11771177 /// assert_eq!(tables.sites().position(0).unwrap(), 11.0);
11781178 /// # sites.clear().unwrap();
11791179 /// # assert_eq!(sites.num_rows(), 0);
11801180 /// ```
1181- pub fn set_sites ( & mut self , sites : & crate :: OwningSiteTable ) -> TskReturnValue {
1181+ pub fn set_sites ( & mut self , sites : & crate :: SiteTable ) -> TskReturnValue {
11821182 // SAFETY: neither self nor nodes are possible
11831183 // to create with null pointers.
11841184 let rv = unsafe {
@@ -1195,7 +1195,7 @@ impl TableCollection {
11951195 handle_tsk_return_value ! ( rv)
11961196 }
11971197
1198- /// Set the mutation table from an [`OwningMutationTable `](`crate::OwningSiteTable `)
1198+ /// Set the mutation table from an [`MutationTable `](`crate::SiteTable `)
11991199 ///
12001200 /// # Errors
12011201 ///
@@ -1206,15 +1206,15 @@ impl TableCollection {
12061206 /// ```rust
12071207 /// #
12081208 /// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1209- /// let mut mutations = tskit::OwningMutationTable ::default();
1209+ /// let mut mutations = tskit::MutationTable ::default();
12101210 /// mutations.add_row(14, 12, -1, 11.3, None).unwrap();
12111211 /// tables.set_mutations(&mutations).unwrap();
12121212 /// assert_eq!(tables.mutations().num_rows(), 1);
12131213 /// assert_eq!(tables.mutations().site(0).unwrap(), 14);
12141214 /// # mutations.clear().unwrap();
12151215 /// # assert_eq!(mutations.num_rows(), 0);
12161216 /// ```
1217- pub fn set_mutations ( & mut self , mutations : & crate :: OwningMutationTable ) -> TskReturnValue {
1217+ pub fn set_mutations ( & mut self , mutations : & crate :: MutationTable ) -> TskReturnValue {
12181218 // SAFETY: neither self nor nodes are possible
12191219 // to create with null pointers.
12201220 let rv = unsafe {
@@ -1234,7 +1234,7 @@ impl TableCollection {
12341234 handle_tsk_return_value ! ( rv)
12351235 }
12361236
1237- /// Set the individual table from an [`OwningIndividualTable `](`crate::OwningSiteTable `)
1237+ /// Set the individual table from an [`IndividualTable `](`crate::SiteTable `)
12381238 ///
12391239 /// # Errors
12401240 ///
@@ -1245,7 +1245,7 @@ impl TableCollection {
12451245 /// ```rust
12461246 /// #
12471247 /// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1248- /// let mut individuals = tskit::OwningIndividualTable ::default();
1248+ /// let mut individuals = tskit::IndividualTable ::default();
12491249 /// individuals.add_row(0, [0.1, 10.0], None).unwrap();
12501250 /// tables.set_individuals(&individuals).unwrap();
12511251 /// assert_eq!(tables.individuals().num_rows(), 1);
@@ -1254,10 +1254,7 @@ impl TableCollection {
12541254 /// # individuals.clear().unwrap();
12551255 /// # assert_eq!(individuals.num_rows(), 0);
12561256 /// ```
1257- pub fn set_individuals (
1258- & mut self ,
1259- individuals : & crate :: OwningIndividualTable ,
1260- ) -> TskReturnValue {
1257+ pub fn set_individuals ( & mut self , individuals : & crate :: IndividualTable ) -> TskReturnValue {
12611258 // SAFETY: neither self nor nodes are possible
12621259 // to create with null pointers.
12631260 let rv = unsafe {
@@ -1276,7 +1273,7 @@ impl TableCollection {
12761273 handle_tsk_return_value ! ( rv)
12771274 }
12781275
1279- /// Set the migration table from an [`OwningMigrationTable `](`crate::OwningSiteTable `)
1276+ /// Set the migration table from an [`MigrationTable `](`crate::SiteTable `)
12801277 ///
12811278 /// # Errors
12821279 ///
@@ -1287,15 +1284,15 @@ impl TableCollection {
12871284 /// ```rust
12881285 /// #
12891286 /// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1290- /// let mut migrations = tskit::OwningMigrationTable ::default();
1287+ /// let mut migrations = tskit::MigrationTable ::default();
12911288 /// migrations.add_row((0.25, 0.37), 1, (0, 1), 111.0).unwrap();
12921289 /// tables.set_migrations(&migrations).unwrap();
12931290 /// assert_eq!(tables.migrations().num_rows(), 1);
12941291 /// assert_eq!(tables.migrations().time(0).unwrap(), 111.0);
12951292 /// # migrations.clear().unwrap();
12961293 /// # assert_eq!(migrations.num_rows(), 0);
12971294 /// ```
1298- pub fn set_migrations ( & mut self , migrations : & crate :: OwningMigrationTable ) -> TskReturnValue {
1295+ pub fn set_migrations ( & mut self , migrations : & crate :: MigrationTable ) -> TskReturnValue {
12991296 // SAFETY: neither self nor edges are possible
13001297 // to create with null pointers.
13011298 let rv = unsafe {
@@ -1315,7 +1312,7 @@ impl TableCollection {
13151312 handle_tsk_return_value ! ( rv)
13161313 }
13171314
1318- /// Set the population table from an [`OwningPopulationTable `](`crate::OwningSiteTable `)
1315+ /// Set the population table from an [`PopulationTable `](`crate::SiteTable `)
13191316 ///
13201317 /// # Errors
13211318 ///
@@ -1326,17 +1323,14 @@ impl TableCollection {
13261323 /// ```rust
13271324 /// #
13281325 /// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1329- /// let mut populations = tskit::OwningPopulationTable ::default();
1326+ /// let mut populations = tskit::PopulationTable ::default();
13301327 /// populations.add_row().unwrap();
13311328 /// tables.set_populations(&populations).unwrap();
13321329 /// assert_eq!(tables.populations().num_rows(), 1);
13331330 /// # populations.clear().unwrap();
13341331 /// # assert_eq!(populations.num_rows(), 0);
13351332 /// ```
1336- pub fn set_populations (
1337- & mut self ,
1338- populations : & crate :: OwningPopulationTable ,
1339- ) -> TskReturnValue {
1333+ pub fn set_populations ( & mut self , populations : & crate :: PopulationTable ) -> TskReturnValue {
13401334 // SAFETY: neither self nor edges are possible
13411335 // to create with null pointers.
13421336 let rv = unsafe {
@@ -1353,7 +1347,7 @@ impl TableCollection {
13531347 #[ cfg( feature = "provenance" ) ]
13541348 #[ cfg_attr( doc_cfg, doc( cfg( feature = "provenance" ) ) ) ]
13551349 /// Set the provenance table from an
1356- /// [`OwningProvenanceTable `](`crate::provenance::OwningProvenanceTable `)
1350+ /// [`ProvenanceTable `](`crate::provenance::ProvenanceTable `)
13571351 ///
13581352 /// # Errors
13591353 ///
@@ -1365,7 +1359,7 @@ impl TableCollection {
13651359 /// # #[cfg(feature="provenance")] {
13661360 /// #
13671361 /// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1368- /// let mut provenances = tskit::provenance::OwningProvenanceTable ::default();
1362+ /// let mut provenances = tskit::provenance::ProvenanceTable ::default();
13691363 /// provenances.add_row("I like pancakes").unwrap();
13701364 /// tables.set_provenances(&provenances).unwrap();
13711365 /// assert_eq!(tables.provenances().num_rows(), 1);
@@ -1376,7 +1370,7 @@ impl TableCollection {
13761370 /// ```
13771371 pub fn set_provenances (
13781372 & mut self ,
1379- provenances : & crate :: provenance:: OwningProvenanceTable ,
1373+ provenances : & crate :: provenance:: ProvenanceTable ,
13801374 ) -> TskReturnValue {
13811375 // SAFETY: neither self nor edges are possible
13821376 // to create with null pointers.
0 commit comments