File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,14 @@ impl<'a> TextRow<'a> {
145
145
self . columns
146
146
}
147
147
148
- /// stub
148
+ /// Retrieve the contents of a field of a row
149
+ ///
150
+ /// A field can be accessed by the name or index of its column, though
151
+ /// access by index is more efficient. Rows are 0-indexed.
152
+ ///
153
+ /// # Panics
154
+ ///
155
+ /// Panics if the index does not reference a column
149
156
pub fn get < I > ( & self , idx : I ) -> & str
150
157
where
151
158
I : RowIndex + fmt:: Debug ,
@@ -157,7 +164,14 @@ impl<'a> TextRow<'a> {
157
164
}
158
165
}
159
166
160
- /// stub
167
+ /// Retrieves the contents of a field of the row.
168
+ ///
169
+ /// A field can be accessed by the name or index of its column, though
170
+ /// access by index is more efficient. Rows are 0-indexed.
171
+ ///
172
+ /// Returns None if the index does not reference a column, Some(Err(..)) if
173
+ /// there was an error parsing the result as UTF-8, and Some(Ok(..)) on
174
+ /// success.
161
175
pub fn get_opt < I > ( & self , idx : I ) -> Option < Result < & str > >
162
176
where
163
177
I : RowIndex ,
You can’t perform that action at this time.
0 commit comments