pub struct Dict { /* private fields */ }Expand description
This class implements name-value dictionary, values are instances of DictValue.
Trait Implementations§
source§impl Boxed for Dict
impl Boxed for Dict
source§impl DictTrait for Dict
impl DictTrait for Dict
fn as_raw_mut_Dict(&mut self) -> *mut c_void
source§unsafe fn ptr_mut(&mut self, key: &str) -> Result<DictValue>
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.
source§fn set_str(&mut self, key: &str, value: &str) -> Result<String>
fn set_str(&mut self, key: &str, value: &str) -> Result<String>
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§fn set(&mut self, key: &str, value: &DictValue) -> Result<DictValue>
fn set(&mut self, key: &str, value: &DictValue) -> Result<DictValue>
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§fn set_f64(&mut self, key: &str, value: &f64) -> Result<f64>
fn set_f64(&mut self, key: &str, value: &f64) -> Result<f64>
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§impl DictTraitConst for Dict
impl DictTraitConst for Dict
source§impl From<LayerParams> for Dict
impl From<LayerParams> for Dict
source§fn from(s: LayerParams) -> Self
fn from(s: LayerParams) -> Self
Converts to this type from the input type.