pub struct Dictionary { /* private fields */ }
Implementations§
Source§impl Dictionary
impl Dictionary
pub fn new() -> Self
pub fn builder() -> DictionaryBuilder
Sourcepub unsafe fn from_ptr_ref(ptr: *mut AVDictionary) -> Self
pub unsafe fn from_ptr_ref(ptr: *mut AVDictionary) -> Self
§Safety
ptr
must be a valid pointer.
The caller must also ensure that the dictionary is not freed while this
object is alive, and that we don’t use the pointer as mutable
Sourcepub unsafe fn from_ptr_owned(ptr: *mut AVDictionary) -> Self
pub unsafe fn from_ptr_owned(ptr: *mut AVDictionary) -> Self
§Safety
ptr
must be a valid pointer.
pub fn set(&mut self, key: &str, value: &str) -> Result<(), FfmpegError>
pub fn get(&self, key: &str) -> Option<String>
pub fn iter(&self) -> DictionaryIterator<'_> ⓘ
pub fn as_ptr(&self) -> *const AVDictionary
pub fn as_mut_ptr_ref(&mut self) -> &mut *mut AVDictionary
pub fn into_ptr(self) -> *mut AVDictionary
Trait Implementations§
Source§impl Clone for Dictionary
impl Clone for Dictionary
Source§impl Debug for Dictionary
impl Debug for Dictionary
Source§impl Default for Dictionary
impl Default for Dictionary
Source§impl From<&Dictionary> for HashMap<String, String>
impl From<&Dictionary> for HashMap<String, String>
Source§fn from(dict: &Dictionary) -> Self
fn from(dict: &Dictionary) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoIterator for &'a Dictionary
impl<'a> IntoIterator for &'a Dictionary
impl Send for Dictionary
Safety: Dictionary
is safe to send between threads.
Auto Trait Implementations§
impl Freeze for Dictionary
impl RefUnwindSafe for Dictionary
impl !Sync for Dictionary
impl Unpin for Dictionary
impl UnwindSafe for Dictionary
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