pub fn seek_to_first(&mut self) {
        unsafe {
            ffi::rocksdb_iter_seek_to_first(self.inner);
        }
    }
/// Seeks to the first key in the database.
///
/// # Examples
///
/// ```rust
/// use rocksdb::{DB, Options};
///
/// let path = "_path_for_rocksdb_storage5";
/// {
///     let db = DB::open_default(path).unwrap();
///     let mut iter = db.raw_iterator();
///
///     // Iterate all keys from the start in lexicographic order
///     iter.seek_to_first();
///
///     while iter.valid() {
///         println!("{:?} {:?}", iter.key(), iter.value());
///         iter.next();
///     }
///
///     // Read just the first key
///     iter.seek_to_first();
///
///     if iter.valid() {
///         println!("{:?} {:?}", iter.key(), iter.value());
///     } else {
///         // There are no keys in the database
///     }
/// }
/// let _ = DB::destroy(&Options::default(), path);
/// ```
Seeks to the first key in the database.
Seeks to the first key in the database .
pub fn seek_to_first(&mut self) {
        unsafe {
            ffi::rocksdb_iter_seek_to_first(self.inner);
        }
    }
pub fn seek_to_first ( & mut self ) { unsafe { ffi :: rocksdb_iter_seek_to_first ( self . inner ) ; } }
Seeks to the first key in the database.
Seeks to the first key in the database .
&mut self
&mut self
examples
```rust
use rocksdb::{DB, Options}.

let path = "_path_for_rocksdb_storage5";
{
let db = DB::open_default(path).unwrap();
let mut iter = db.raw_iterator().

Iterate all keys from the start in lexicographic order
iter.seek_to_first().



Read just the first key
iter.seek_to_first().

if iter.valid() {
println!("{:?} {:?}", iter.key(), iter.value());
} else {
There are no keys in the database
}
}
let _ = DB::destroy(&Options::default(), path);
```
` ` ` rust use rocksdb :: { DB Options } . let path = " _path_for_rocksdb_storage5 " ; { let db = DB :: open_default ( path ) . unwrap () ; let mut iter = db . raw_iterator () . Iterate all keys from the start in lexicographic order iter . seek_to_first () . Read just the first key iter . seek_to_first () . if iter . valid () { println! ( " { : ? } { : ? } " iter . key () iter . value () ) ; } else { There are no keys in the database } } let _ = DB :: destroy ( &Options :: default () path ) ; ` ` `