diff --git a/src/cursor.rs b/src/cursor.rs index 76b1911..98f0a54 100644 --- a/src/cursor.rs +++ b/src/cursor.rs @@ -20,6 +20,12 @@ impl<'l> Cursor<'l> { Ok(()) } + /// Return the number of columns. + #[inline] + pub fn columns(&self) -> usize { + self.statement.columns() + } + /// Advance to the next row and read all columns. pub fn next(&mut self) -> Result> { match self.state { @@ -65,12 +71,6 @@ impl<'l> Cursor<'l> { Ok(Some(self.values.as_ref().unwrap())) } - /// Return the number of columns. - #[inline] - pub fn columns(&self) -> usize { - self.statement.columns() - } - /// Return the raw pointer. #[inline] pub fn as_raw(&self) -> *mut ffi::sqlite3_stmt {