pub struct Properties(/* private fields */);
Expand description
A collection of key/value pairs.
Implementations§
Source§impl Properties
impl Properties
pub fn as_raw(&self) -> &pw_properties
Sourcepub fn as_raw_ptr(&self) -> *mut pw_properties
pub fn as_raw_ptr(&self) -> *mut pw_properties
Obtain a pointer to the underlying pw_properties
struct.
The pointer is only valid for the lifetime of the Properties
struct the pointer was obtained from,
and must not be dereferenced after it is dropped.
Ownership of the pw_properties
struct is not transferred to the caller and must not be manually freed.
pub fn dict(&self) -> &DictRef
pub fn to_owned(&self) -> PropertiesBox
pub fn get(&self, key: &str) -> Option<&str>
pub fn insert<K, V>(&mut self, key: K, value: V)
pub fn remove<T>(&mut self, key: T)
pub fn clear(&mut self)
Trait Implementations§
Source§impl AsRef<DictRef> for Properties
impl AsRef<DictRef> for Properties
Source§impl AsRef<Properties> for PropertiesBox
impl AsRef<Properties> for PropertiesBox
Source§fn as_ref(&self) -> &Properties
fn as_ref(&self) -> &Properties
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for Properties
impl RefUnwindSafe for Properties
impl !Send for Properties
impl !Sync for Properties
impl Unpin for Properties
impl UnwindSafe for Properties
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more