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