pub trait IndexParamsTraitConst {
// Required method
fn as_raw_IndexParams(&self) -> *const c_void;
// Provided methods
fn get_string(&self, key: &str, default_val: &str) -> Result<String> { ... }
fn get_string_def(&self, key: &str) -> Result<String> { ... }
fn get_int(&self, key: &str, default_val: i32) -> Result<i32> { ... }
fn get_int_def(&self, key: &str) -> Result<i32> { ... }
fn get_double(&self, key: &str, default_val: f64) -> Result<f64> { ... }
fn get_double_def(&self, key: &str) -> Result<f64> { ... }
fn get_all(
&self,
names: &mut Vector<String>,
types: &mut Vector<FlannIndexType>,
str_values: &mut Vector<String>,
num_values: &mut Vector<f64>,
) -> Result<()> { ... }
}
Expand description
Constant methods for crate::flann::IndexParams
Required Methods§
fn as_raw_IndexParams(&self) -> *const c_void
Provided Methods§
Sourcefn get_string(&self, key: &str, default_val: &str) -> Result<String>
fn get_string(&self, key: &str, default_val: &str) -> Result<String>
§C++ default parameters
- default_val: String()
Sourcefn get_string_def(&self, key: &str) -> Result<String>
fn get_string_def(&self, key: &str) -> Result<String>
§Note
This alternative version of IndexParamsTraitConst::get_string function uses the following default values for its arguments:
- default_val: String()
Sourcefn get_int(&self, key: &str, default_val: i32) -> Result<i32>
fn get_int(&self, key: &str, default_val: i32) -> Result<i32>
§C++ default parameters
- default_val: -1
Sourcefn get_int_def(&self, key: &str) -> Result<i32>
fn get_int_def(&self, key: &str) -> Result<i32>
§Note
This alternative version of IndexParamsTraitConst::get_int function uses the following default values for its arguments:
- default_val: -1
Sourcefn get_double(&self, key: &str, default_val: f64) -> Result<f64>
fn get_double(&self, key: &str, default_val: f64) -> Result<f64>
§C++ default parameters
- default_val: -1
Sourcefn get_double_def(&self, key: &str) -> Result<f64>
fn get_double_def(&self, key: &str) -> Result<f64>
§Note
This alternative version of IndexParamsTraitConst::get_double function uses the following default values for its arguments:
- default_val: -1