Skip to content

Commit 77ae8a9

Browse files
authored
refactor: mod table_view is no longer pub (#483)
* remove doc links to (now) private type While technically a breaking change, the type in this mod had no pub fields nor a way to construct. Code will only break if it referred to this module for some reason.
1 parent 3125cae commit 77ae8a9

9 files changed

+2
-30
lines changed

src/edge_table.rs

-4
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ impl<'a> streaming_iterator::StreamingIterator for EdgeTableRowView<'a> {
138138
}
139139

140140
/// An immutable view of an edge table.
141-
///
142-
/// These are not created directly but are accessed
143-
/// by types implementing [`std::ops::Deref`] to
144-
/// [`crate::table_views::TableViews`]
145141
#[repr(transparent)]
146142
#[derive(Debug)]
147143
pub struct EdgeTable {

src/individual_table.rs

-4
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ impl<'a> streaming_iterator::StreamingIterator for IndividualTableRowView<'a> {
9696
}
9797

9898
/// An immutable view of a individual table.
99-
///
100-
/// These are not created directly but are accessed
101-
/// by types implementing [`std::ops::Deref`] to
102-
/// [`crate::table_views::TableViews`]
10399
#[derive(Debug)]
104100
#[repr(transparent)]
105101
pub struct IndividualTable {

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ mod site_table;
9595
mod sys;
9696
mod table_collection;
9797
mod table_iterator;
98-
pub mod table_views;
98+
mod table_views;
9999
mod traits;
100100
mod tree_interface;
101101
mod trees;

src/migration_table.rs

-4
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,6 @@ impl<'a> streaming_iterator::StreamingIterator for MigrationTableRowView<'a> {
158158
}
159159

160160
/// An immutable view of a migration table.
161-
///
162-
/// These are not created directly but are accessed
163-
/// by types implementing [`std::ops::Deref`] to
164-
/// [`crate::table_views::TableViews`]
165161
#[derive(Debug)]
166162
#[repr(transparent)]
167163
pub struct MigrationTable {

src/mutation_table.rs

-4
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,6 @@ impl<'a> streaming_iterator::StreamingIterator for MutationTableRowView<'a> {
155155
}
156156

157157
/// An immutable view of site table.
158-
///
159-
/// These are not created directly but are accessed
160-
/// by types implementing [`std::ops::Deref`] to
161-
/// [`crate::table_views::TableViews`]
162158
#[derive(Debug)]
163159
#[repr(transparent)]
164160
pub struct MutationTable {

src/node_table.rs

-4
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,6 @@ impl<'a> streaming_iterator::StreamingIterator for NodeTableRowView<'a> {
139139
}
140140

141141
/// An immtable view of a node table.
142-
///
143-
/// These are not created directly but are accessed
144-
/// by types implementing [`std::ops::Deref`] to
145-
/// [`crate::table_views::TableViews`]
146142
#[derive(Debug)]
147143
#[repr(transparent)]
148144
pub struct NodeTable {

src/population_table.rs

-4
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ impl<'a> streaming_iterator::StreamingIterator for PopulationTableRowView<'a> {
107107
}
108108

109109
/// An immutable view of site table.
110-
///
111-
/// These are not created directly but are accessed
112-
/// by types implementing [`std::ops::Deref`] to
113-
/// [`crate::table_views::TableViews`]
114110
#[repr(transparent)]
115111
#[derive(Debug)]
116112
pub struct PopulationTable {

src/site_table.rs

-4
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,6 @@ impl<'a> streaming_iterator::StreamingIterator for SiteTableRowView<'a> {
125125
}
126126

127127
/// An immutable view of site table.
128-
///
129-
/// These are not created directly but are accessed
130-
/// by types implementing [`std::ops::Deref`] to
131-
/// [`crate::table_views::TableViews`]
132128
#[derive(Debug)]
133129
#[repr(transparent)]
134130
pub struct SiteTable {

src/trees.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl streaming_iterator::DoubleEndedStreamingIterator for Tree {
166166
/// assert_eq!(treeseq.edges().num_rows(), 2);
167167
/// ```
168168
///
169-
/// This type does not [`std::ops::DerefMut`] to [`crate::table_views::TableViews`]:
169+
/// This type does not provide access to mutable tables.
170170
///
171171
/// ```compile_fail
172172
/// # let mut tables = tskit::TableCollection::new(1000.).unwrap();

0 commit comments

Comments
 (0)