[−][src]Trait opencv::prelude::DictTrait
This class implements name-value dictionary, values are instances of DictValue.
Required methods
pub fn as_raw_Dict(&self) -> *const c_void
[src]
pub fn as_raw_mut_Dict(&mut self) -> *mut c_void
[src]
Provided methods
pub fn has(&self, key: &str) -> Result<bool>
[src]
Checks a presence of the @p key in the dictionary.
pub unsafe fn ptr_mut(&mut self, key: &str) -> Result<DictValue>
[src]
If the @p key in the dictionary then returns pointer to its value, else returns NULL.
pub unsafe fn ptr(&self, key: &str) -> Result<DictValue>
[src]
If the @p key in the dictionary then returns pointer to its value, else returns NULL.
Overloaded parameters
pub fn get(&self, key: &str) -> Result<DictValue>
[src]
If the @p key in the dictionary then returns its value, else an error will be generated.
pub fn set_str(&mut self, key: &str, value: &str) -> Result<String>
[src]
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
pub fn set(&mut self, key: &str, value: &DictValue) -> Result<DictValue>
[src]
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
pub fn set_f64(&mut self, key: &str, value: &f64) -> Result<f64>
[src]
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
pub fn set_i64(&mut self, key: &str, value: &i64) -> Result<i64>
[src]
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
pub fn erase(&mut self, key: &str) -> Result<()>
[src]
Erase @p key from the dictionary.