@@ -90,6 +90,11 @@ impl TableViews {
9090 & self . edges
9191 }
9292
93+ /// Get mutable reference to the [``EdgeTable``](crate::EdgeTable).
94+ pub fn edges_mut ( & mut self ) -> & mut EdgeTable {
95+ & mut self . edges
96+ }
97+
9398 /// Get reference to the [``NodeTable``](crate::NodeTable).
9499 pub fn nodes ( & self ) -> & NodeTable {
95100 & self . nodes
@@ -105,33 +110,65 @@ impl TableViews {
105110 & self . sites
106111 }
107112
113+ /// Get mutable reference to the [``SiteTable``](crate::SiteTable).
114+ pub fn sites_mut ( & mut self ) -> & mut SiteTable {
115+ & mut self . sites
116+ }
117+
108118 /// Get reference to the [``MutationTable``](crate::MutationTable).
109119 pub fn mutations ( & self ) -> & MutationTable {
110120 & self . mutations
111121 }
112122
123+ /// Get mutable reference to the [``MutationTable``](crate::MutationTable).
124+ pub fn mutations_mut ( & mut self ) -> & mut MutationTable {
125+ & mut self . mutations
126+ }
127+
113128 /// Get reference to the [``IndividualTable``](crate::IndividualTable).
114129 pub fn individuals ( & self ) -> & IndividualTable {
115130 & self . individuals
116131 }
117132
133+ /// Get mutable reference to the [``IndividualTable``](crate::IndividualTable).
134+ pub fn individuals_mut ( & mut self ) -> & mut IndividualTable {
135+ & mut self . individuals
136+ }
137+
118138 /// Get reference to the [``PopulationTable``](crate::PopulationTable).
119139 pub fn populations ( & self ) -> & PopulationTable {
120140 & self . populations
121141 }
122142
143+ /// Get mutable reference to the [``PopulationTable``](crate::PopulationTable).
144+ pub fn populations_mut ( & mut self ) -> & mut PopulationTable {
145+ & mut self . populations
146+ }
147+
123148 /// Get reference to the [``MigrationTable``](crate::MigrationTable).
124149 pub fn migrations ( & self ) -> & MigrationTable {
125150 & self . migrations
126151 }
127152
153+ /// Get mutable reference to the [``MigrationTable``](crate::MigrationTable).
154+ pub fn migrations_mut ( & mut self ) -> & mut MigrationTable {
155+ & mut self . migrations
156+ }
157+
128158 #[ cfg( feature = "provenance" ) ]
129159 #[ cfg_attr( doc_cfg, doc( cfg( feature = "provenance" ) ) ) ]
130160 /// Get reference to the [``ProvenanceTable``](crate::provenance::ProvenanceTable)
131161 pub fn provenances ( & self ) -> & ProvenanceTable {
132162 & self . provenances
133163 }
134164
165+ #[ cfg( feature = "provenance" ) ]
166+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "provenance" ) ) ) ]
167+ /// Get mutable reference to the [``ProvenanceTable``](crate::provenance::ProvenanceTable)
168+ pub fn provenances_mut ( & mut self ) -> & mut ProvenanceTable {
169+ & mut self . provenances
170+ }
171+
135172 /// Return an iterator over the edges.
136173 pub fn edges_iter ( & self ) -> impl Iterator < Item = crate :: EdgeTableRow > + ' _ {
137174 self . edges . iter ( )
0 commit comments