[][src]Trait opencv::dnn::Dict

pub trait Dict {
    fn as_raw_Dict(&self) -> *mut c_void;

    fn has(&self, key: &str) -> Result<bool> { ... }
unsafe fn ptr_mut(&mut self, key: &str) -> Result<DictValue> { ... }
unsafe fn ptr(&self, key: &str) -> Result<DictValue> { ... }
fn get(&self, key: &str) -> Result<DictValue> { ... }
fn set(&mut self, key: &str, value: &mut DictValue) -> Result<DictValue> { ... }
fn erase(&mut self, key: &str) -> Result<()> { ... } }

This class implements name-value dictionary, values are instances of DictValue.

Required methods

Loading content...

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.

Loading content...

Implementors

Loading content...