Skip to content

Commit c9c9864

Browse files
committed
tests pass
1 parent fbf94f1 commit c9c9864

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/table_collection.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ impl TableCollection {
925925
/// ```
926926
=> add_provenance, self, self.inner.provenances);
927927

928-
/// Set the edge table from an [`OwnedEdgeTable`](`crate::OwningEdgeTable`)
928+
/// Set the edge table from an [`OwningEdgeTable`](`crate::OwningEdgeTable`)
929929
///
930930
/// # Errors
931931
///
@@ -936,7 +936,7 @@ impl TableCollection {
936936
/// ```rust
937937
/// #
938938
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
939-
/// let mut edges = tskit::OwnedEdgeTable::default();
939+
/// let mut edges = tskit::OwningEdgeTable::default();
940940
/// edges.add_row(0., 1., 0, 12).unwrap();
941941
/// tables.set_edges(&edges).unwrap();
942942
/// assert_eq!(tables.edges().num_rows(), 1);
@@ -962,7 +962,7 @@ impl TableCollection {
962962
handle_tsk_return_value!(rv)
963963
}
964964

965-
/// Set the node table from an [`OwnedNodeTable`](`crate::OwningNodeTable`)
965+
/// Set the node table from an [`OwningNodeTable`](`crate::OwningNodeTable`)
966966
///
967967
/// # Errors
968968
///
@@ -973,7 +973,7 @@ impl TableCollection {
973973
/// ```rust
974974
/// #
975975
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
976-
/// let mut nodes = tskit::OwnedNodeTable::default();
976+
/// let mut nodes = tskit::OwningNodeTable::default();
977977
/// nodes.add_row(0, 10.0, -1, -1).unwrap();
978978
/// tables.set_nodes(&nodes).unwrap();
979979
/// assert_eq!(tables.nodes().num_rows(), 1);
@@ -999,7 +999,7 @@ impl TableCollection {
999999
handle_tsk_return_value!(rv)
10001000
}
10011001

1002-
/// Set the site table from an [`OwnedSiteTable`](`crate::OwningSiteTable`)
1002+
/// Set the site table from an [`OwningSiteTable`](`crate::OwningSiteTable`)
10031003
///
10041004
/// # Errors
10051005
///
@@ -1010,7 +1010,7 @@ impl TableCollection {
10101010
/// ```rust
10111011
/// #
10121012
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1013-
/// let mut sites = tskit::OwnedSiteTable::default();
1013+
/// let mut sites = tskit::OwningSiteTable::default();
10141014
/// sites.add_row(11.0, None).unwrap();
10151015
/// tables.set_sites(&sites).unwrap();
10161016
/// assert_eq!(tables.sites().num_rows(), 1);
@@ -1035,7 +1035,7 @@ impl TableCollection {
10351035
handle_tsk_return_value!(rv)
10361036
}
10371037

1038-
/// Set the mutation table from an [`OwnedMutationTable`](`crate::OwningSiteTable`)
1038+
/// Set the mutation table from an [`OwningMutationTable`](`crate::OwningSiteTable`)
10391039
///
10401040
/// # Errors
10411041
///
@@ -1046,7 +1046,7 @@ impl TableCollection {
10461046
/// ```rust
10471047
/// #
10481048
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1049-
/// let mut mutations = tskit::OwnedMutationTable::default();
1049+
/// let mut mutations = tskit::OwningMutationTable::default();
10501050
/// mutations.add_row(14, 12, -1, 11.3, None).unwrap();
10511051
/// tables.set_mutations(&mutations).unwrap();
10521052
/// assert_eq!(tables.mutations().num_rows(), 1);
@@ -1074,7 +1074,7 @@ impl TableCollection {
10741074
handle_tsk_return_value!(rv)
10751075
}
10761076

1077-
/// Set the individual table from an [`OwnedIndividualTable`](`crate::OwningSiteTable`)
1077+
/// Set the individual table from an [`OwningIndividualTable`](`crate::OwningSiteTable`)
10781078
///
10791079
/// # Errors
10801080
///
@@ -1085,7 +1085,7 @@ impl TableCollection {
10851085
/// ```rust
10861086
/// #
10871087
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1088-
/// let mut individuals = tskit::OwnedIndividualTable::default();
1088+
/// let mut individuals = tskit::OwningIndividualTable::default();
10891089
/// individuals.add_row(0, [0.1, 10.0], None).unwrap();
10901090
/// tables.set_individuals(&individuals).unwrap();
10911091
/// assert_eq!(tables.individuals().num_rows(), 1);
@@ -1116,7 +1116,7 @@ impl TableCollection {
11161116
handle_tsk_return_value!(rv)
11171117
}
11181118

1119-
/// Set the migration table from an [`OwnedMigrationTable`](`crate::OwningSiteTable`)
1119+
/// Set the migration table from an [`OwningMigrationTable`](`crate::OwningSiteTable`)
11201120
///
11211121
/// # Errors
11221122
///
@@ -1127,7 +1127,7 @@ impl TableCollection {
11271127
/// ```rust
11281128
/// #
11291129
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1130-
/// let mut migrations = tskit::OwnedMigrationTable::default();
1130+
/// let mut migrations = tskit::OwningMigrationTable::default();
11311131
/// migrations.add_row((0.25, 0.37), 1, (0, 1), 111.0).unwrap();
11321132
/// tables.set_migrations(&migrations).unwrap();
11331133
/// assert_eq!(tables.migrations().num_rows(), 1);
@@ -1155,7 +1155,7 @@ impl TableCollection {
11551155
handle_tsk_return_value!(rv)
11561156
}
11571157

1158-
/// Set the population table from an [`OwnedPopulationTable`](`crate::OwningSiteTable`)
1158+
/// Set the population table from an [`OwningPopulationTable`](`crate::OwningSiteTable`)
11591159
///
11601160
/// # Errors
11611161
///
@@ -1166,7 +1166,7 @@ impl TableCollection {
11661166
/// ```rust
11671167
/// #
11681168
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1169-
/// let mut populations = tskit::OwnedPopulationTable::default();
1169+
/// let mut populations = tskit::OwningPopulationTable::default();
11701170
/// populations.add_row().unwrap();
11711171
/// tables.set_populations(&populations).unwrap();
11721172
/// assert_eq!(tables.populations().num_rows(), 1);
@@ -1193,7 +1193,7 @@ impl TableCollection {
11931193
#[cfg(feature = "provenance")]
11941194
#[cfg_attr(doc_cfg, doc(cfg(feature = "provenance")))]
11951195
/// Set the provenance table from an
1196-
/// [`OwnedProvenanceTable`](`crate::provenance::OwnedProvenanceTable`)
1196+
/// [`OwningProvenanceTable`](`crate::provenance::OwningProvenanceTable`)
11971197
///
11981198
/// # Errors
11991199
///
@@ -1205,7 +1205,7 @@ impl TableCollection {
12051205
/// # #[cfg(feature="provenance")] {
12061206
/// #
12071207
/// let mut tables = tskit::TableCollection::new(1.0).unwrap();
1208-
/// let mut provenances = tskit::provenance::OwnedProvenanceTable::default();
1208+
/// let mut provenances = tskit::provenance::OwningProvenanceTable::default();
12091209
/// provenances.add_row("I like pancakes").unwrap();
12101210
/// tables.set_provenances(&provenances).unwrap();
12111211
/// assert_eq!(tables.provenances().num_rows(), 1);
@@ -1216,7 +1216,7 @@ impl TableCollection {
12161216
/// ```
12171217
pub fn set_provenances(
12181218
&mut self,
1219-
provenances: &crate::provenance::OwnedProvenanceTable,
1219+
provenances: &crate::provenance::OwningProvenanceTable,
12201220
) -> TskReturnValue {
12211221
// SAFETY: neither self nor edges are possible
12221222
// to create with null pointers.

0 commit comments

Comments
 (0)