@@ -1085,7 +1085,7 @@ impl TableCollection {
1085
1085
self . provenances_mut ( ) . add_row ( record)
1086
1086
}
1087
1087
1088
- /// Set the edge table from an [`OwningEdgeTable `](`crate::OwningEdgeTable `)
1088
+ /// Set the edge table from an [`EdgeTable `](`crate::EdgeTable `)
1089
1089
///
1090
1090
/// # Errors
1091
1091
///
@@ -1096,15 +1096,15 @@ impl TableCollection {
1096
1096
/// ```rust
1097
1097
/// #
1098
1098
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1099
- /// let mut edges = tskit::OwningEdgeTable ::default();
1099
+ /// let mut edges = tskit::EdgeTable ::default();
1100
1100
/// edges.add_row(0., 1., 0, 12).unwrap();
1101
1101
/// tables.set_edges(&edges).unwrap();
1102
1102
/// assert_eq!(tables.edges().num_rows(), 1);
1103
1103
/// assert_eq!(tables.edges().child(0).unwrap(), 12);
1104
1104
/// # edges.clear().unwrap();
1105
1105
/// # assert_eq!(edges.num_rows(), 0);
1106
1106
/// ```
1107
- pub fn set_edges ( & mut self , edges : & crate :: OwningEdgeTable ) -> TskReturnValue {
1107
+ pub fn set_edges ( & mut self , edges : & crate :: EdgeTable ) -> TskReturnValue {
1108
1108
// SAFETY: neither self nor edges are possible
1109
1109
// to create with null pointers.
1110
1110
let rv = unsafe {
@@ -1122,7 +1122,7 @@ impl TableCollection {
1122
1122
handle_tsk_return_value ! ( rv)
1123
1123
}
1124
1124
1125
- /// Set the node table from an [`OwningNodeTable `](`crate::OwningNodeTable `)
1125
+ /// Set the node table from an [`NodeTable `](`crate::NodeTable `)
1126
1126
///
1127
1127
/// # Errors
1128
1128
///
@@ -1133,15 +1133,15 @@ impl TableCollection {
1133
1133
/// ```rust
1134
1134
/// #
1135
1135
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1136
- /// let mut nodes = tskit::OwningNodeTable ::default();
1136
+ /// let mut nodes = tskit::NodeTable ::default();
1137
1137
/// nodes.add_row(0, 10.0, -1, -1).unwrap();
1138
1138
/// tables.set_nodes(&nodes).unwrap();
1139
1139
/// assert_eq!(tables.nodes().num_rows(), 1);
1140
1140
/// assert_eq!(tables.nodes().time(0).unwrap(), 10.0);
1141
1141
/// # nodes.clear().unwrap();
1142
1142
/// # assert_eq!(nodes.num_rows(), 0);
1143
1143
/// ```
1144
- pub fn set_nodes ( & mut self , nodes : & crate :: OwningNodeTable ) -> TskReturnValue {
1144
+ pub fn set_nodes ( & mut self , nodes : & crate :: NodeTable ) -> TskReturnValue {
1145
1145
// SAFETY: neither self nor nodes are possible
1146
1146
// to create with null pointers.
1147
1147
let rv = unsafe {
@@ -1159,7 +1159,7 @@ impl TableCollection {
1159
1159
handle_tsk_return_value ! ( rv)
1160
1160
}
1161
1161
1162
- /// Set the site table from an [`OwningSiteTable `](`crate::OwningSiteTable `)
1162
+ /// Set the site table from an [`SiteTable `](`crate::SiteTable `)
1163
1163
///
1164
1164
/// # Errors
1165
1165
///
@@ -1170,15 +1170,15 @@ impl TableCollection {
1170
1170
/// ```rust
1171
1171
/// #
1172
1172
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1173
- /// let mut sites = tskit::OwningSiteTable ::default();
1173
+ /// let mut sites = tskit::SiteTable ::default();
1174
1174
/// sites.add_row(11.0, None).unwrap();
1175
1175
/// tables.set_sites(&sites).unwrap();
1176
1176
/// assert_eq!(tables.sites().num_rows(), 1);
1177
1177
/// assert_eq!(tables.sites().position(0).unwrap(), 11.0);
1178
1178
/// # sites.clear().unwrap();
1179
1179
/// # assert_eq!(sites.num_rows(), 0);
1180
1180
/// ```
1181
- pub fn set_sites ( & mut self , sites : & crate :: OwningSiteTable ) -> TskReturnValue {
1181
+ pub fn set_sites ( & mut self , sites : & crate :: SiteTable ) -> TskReturnValue {
1182
1182
// SAFETY: neither self nor nodes are possible
1183
1183
// to create with null pointers.
1184
1184
let rv = unsafe {
@@ -1195,7 +1195,7 @@ impl TableCollection {
1195
1195
handle_tsk_return_value ! ( rv)
1196
1196
}
1197
1197
1198
- /// Set the mutation table from an [`OwningMutationTable `](`crate::OwningSiteTable `)
1198
+ /// Set the mutation table from an [`MutationTable `](`crate::SiteTable `)
1199
1199
///
1200
1200
/// # Errors
1201
1201
///
@@ -1206,15 +1206,15 @@ impl TableCollection {
1206
1206
/// ```rust
1207
1207
/// #
1208
1208
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1209
- /// let mut mutations = tskit::OwningMutationTable ::default();
1209
+ /// let mut mutations = tskit::MutationTable ::default();
1210
1210
/// mutations.add_row(14, 12, -1, 11.3, None).unwrap();
1211
1211
/// tables.set_mutations(&mutations).unwrap();
1212
1212
/// assert_eq!(tables.mutations().num_rows(), 1);
1213
1213
/// assert_eq!(tables.mutations().site(0).unwrap(), 14);
1214
1214
/// # mutations.clear().unwrap();
1215
1215
/// # assert_eq!(mutations.num_rows(), 0);
1216
1216
/// ```
1217
- pub fn set_mutations ( & mut self , mutations : & crate :: OwningMutationTable ) -> TskReturnValue {
1217
+ pub fn set_mutations ( & mut self , mutations : & crate :: MutationTable ) -> TskReturnValue {
1218
1218
// SAFETY: neither self nor nodes are possible
1219
1219
// to create with null pointers.
1220
1220
let rv = unsafe {
@@ -1234,7 +1234,7 @@ impl TableCollection {
1234
1234
handle_tsk_return_value ! ( rv)
1235
1235
}
1236
1236
1237
- /// Set the individual table from an [`OwningIndividualTable `](`crate::OwningSiteTable `)
1237
+ /// Set the individual table from an [`IndividualTable `](`crate::SiteTable `)
1238
1238
///
1239
1239
/// # Errors
1240
1240
///
@@ -1245,7 +1245,7 @@ impl TableCollection {
1245
1245
/// ```rust
1246
1246
/// #
1247
1247
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1248
- /// let mut individuals = tskit::OwningIndividualTable ::default();
1248
+ /// let mut individuals = tskit::IndividualTable ::default();
1249
1249
/// individuals.add_row(0, [0.1, 10.0], None).unwrap();
1250
1250
/// tables.set_individuals(&individuals).unwrap();
1251
1251
/// assert_eq!(tables.individuals().num_rows(), 1);
@@ -1254,10 +1254,7 @@ impl TableCollection {
1254
1254
/// # individuals.clear().unwrap();
1255
1255
/// # assert_eq!(individuals.num_rows(), 0);
1256
1256
/// ```
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 {
1261
1258
// SAFETY: neither self nor nodes are possible
1262
1259
// to create with null pointers.
1263
1260
let rv = unsafe {
@@ -1276,7 +1273,7 @@ impl TableCollection {
1276
1273
handle_tsk_return_value ! ( rv)
1277
1274
}
1278
1275
1279
- /// Set the migration table from an [`OwningMigrationTable `](`crate::OwningSiteTable `)
1276
+ /// Set the migration table from an [`MigrationTable `](`crate::SiteTable `)
1280
1277
///
1281
1278
/// # Errors
1282
1279
///
@@ -1287,15 +1284,15 @@ impl TableCollection {
1287
1284
/// ```rust
1288
1285
/// #
1289
1286
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1290
- /// let mut migrations = tskit::OwningMigrationTable ::default();
1287
+ /// let mut migrations = tskit::MigrationTable ::default();
1291
1288
/// migrations.add_row((0.25, 0.37), 1, (0, 1), 111.0).unwrap();
1292
1289
/// tables.set_migrations(&migrations).unwrap();
1293
1290
/// assert_eq!(tables.migrations().num_rows(), 1);
1294
1291
/// assert_eq!(tables.migrations().time(0).unwrap(), 111.0);
1295
1292
/// # migrations.clear().unwrap();
1296
1293
/// # assert_eq!(migrations.num_rows(), 0);
1297
1294
/// ```
1298
- pub fn set_migrations ( & mut self , migrations : & crate :: OwningMigrationTable ) -> TskReturnValue {
1295
+ pub fn set_migrations ( & mut self , migrations : & crate :: MigrationTable ) -> TskReturnValue {
1299
1296
// SAFETY: neither self nor edges are possible
1300
1297
// to create with null pointers.
1301
1298
let rv = unsafe {
@@ -1315,7 +1312,7 @@ impl TableCollection {
1315
1312
handle_tsk_return_value ! ( rv)
1316
1313
}
1317
1314
1318
- /// Set the population table from an [`OwningPopulationTable `](`crate::OwningSiteTable `)
1315
+ /// Set the population table from an [`PopulationTable `](`crate::SiteTable `)
1319
1316
///
1320
1317
/// # Errors
1321
1318
///
@@ -1326,17 +1323,14 @@ impl TableCollection {
1326
1323
/// ```rust
1327
1324
/// #
1328
1325
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1329
- /// let mut populations = tskit::OwningPopulationTable ::default();
1326
+ /// let mut populations = tskit::PopulationTable ::default();
1330
1327
/// populations.add_row().unwrap();
1331
1328
/// tables.set_populations(&populations).unwrap();
1332
1329
/// assert_eq!(tables.populations().num_rows(), 1);
1333
1330
/// # populations.clear().unwrap();
1334
1331
/// # assert_eq!(populations.num_rows(), 0);
1335
1332
/// ```
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 {
1340
1334
// SAFETY: neither self nor edges are possible
1341
1335
// to create with null pointers.
1342
1336
let rv = unsafe {
@@ -1353,7 +1347,7 @@ impl TableCollection {
1353
1347
#[ cfg( feature = "provenance" ) ]
1354
1348
#[ cfg_attr( doc_cfg, doc( cfg( feature = "provenance" ) ) ) ]
1355
1349
/// Set the provenance table from an
1356
- /// [`OwningProvenanceTable `](`crate::provenance::OwningProvenanceTable `)
1350
+ /// [`ProvenanceTable `](`crate::provenance::ProvenanceTable `)
1357
1351
///
1358
1352
/// # Errors
1359
1353
///
@@ -1365,7 +1359,7 @@ impl TableCollection {
1365
1359
/// # #[cfg(feature="provenance")] {
1366
1360
/// #
1367
1361
/// 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();
1369
1363
/// provenances.add_row("I like pancakes").unwrap();
1370
1364
/// tables.set_provenances(&provenances).unwrap();
1371
1365
/// assert_eq!(tables.provenances().num_rows(), 1);
@@ -1376,7 +1370,7 @@ impl TableCollection {
1376
1370
/// ```
1377
1371
pub fn set_provenances (
1378
1372
& mut self ,
1379
- provenances : & crate :: provenance:: OwningProvenanceTable ,
1373
+ provenances : & crate :: provenance:: ProvenanceTable ,
1380
1374
) -> TskReturnValue {
1381
1375
// SAFETY: neither self nor edges are possible
1382
1376
// to create with null pointers.
0 commit comments