Trait DictTraitConst

Source
pub trait DictTraitConst {
    // Required method
    fn as_raw_Dict(&self) -> *const c_void;

    // Provided methods
    fn has(&self, key: &str) -> Result<bool> { ... }
    unsafe fn ptr(&self, key: &str) -> Result<DictValue> { ... }
    fn get(&self, key: &str) -> Result<DictValue> { ... }
}
Expand description

Constant methods for crate::dnn::Dict

Required Methods§

Provided Methods§

Source

fn has(&self, key: &str) -> Result<bool>

Checks a presence of the @p key in the dictionary.

Source

unsafe fn ptr(&self, key: &str) -> Result<DictValue>

If the @p key in the dictionary then returns pointer to its value, else returns NULL.

§Overloaded parameters
Source

fn get(&self, key: &str) -> Result<DictValue>

If the @p key in the dictionary then returns its value, else an error will be generated.

Implementors§