File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -150,19 +150,30 @@ pub trait TableColumn<I, T>:
150150 + std:: ops:: Index < crate :: SizeType , Output = T >
151151 + private:: TableColumnMarker
152152{
153+ /// Get the underlying slice
153154 fn as_slice ( & self ) -> & [ T ] ;
155+
156+ /// The "standard" get function
154157 fn get ( & self , at : usize ) -> Option < & T > ;
158+
159+ /// Get with a table row identifier such as [`crate::NodeId`]
155160 fn get_with_id ( & self , at : I ) -> Option < & T > ;
161+
162+ /// Get with [`crate::SizeType`]
156163 fn get_with_size_type ( & self , at : crate :: SizeType ) -> Option < & T > ;
164+
165+ /// Iterator over the data.
157166 fn iter < ' a , ' b > ( & ' a self ) -> impl Iterator < Item = & ' b T >
158167 where
159168 ' a : ' b ,
160169 T : ' b ;
161170
171+ /// Column length
162172 fn len ( & self ) -> usize {
163173 self . as_slice ( ) . len ( )
164174 }
165175
176+ /// Query if column is empty
166177 fn is_empty ( & self ) -> bool {
167178 self . as_slice ( ) . is_empty ( )
168179 }
You can’t perform that action at this time.
0 commit comments