pub struct Dict { /* private fields */ }Expand description
This class implements name-value dictionary, values are instances of DictValue.
Trait Implementations
sourceimpl Boxed for Dict
impl Boxed for Dict
sourceimpl DictTrait for Dict
impl DictTrait for Dict
fn as_raw_mut_Dict(&mut self) -> *mut c_void
sourceunsafe 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.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourceimpl DictTraitConst for Dict
impl DictTraitConst for Dict
sourceimpl From<LayerParams> for Dict
impl From<LayerParams> for Dict
sourcefn from(s: LayerParams) -> Self
fn from(s: LayerParams) -> Self
Converts to this type from the input type.
impl Send for Dict
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more