Add helper method for Python bindings
This commit is contained in:
parent
0ce148db1e
commit
f6061044fc
|
@ -189,6 +189,11 @@ impl Search {
|
|||
}
|
||||
self.result.clear();
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub fn get(&self, idx: usize) -> Option<&str> {
|
||||
self.result.get(idx).map(|v| v.as_str())
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Search {
|
||||
|
|
Loading…
Reference in New Issue