pub struct Dictionary<'a> { /* private fields */ }

Implementations§

source§

impl<'a> Owned<'a>

source

pub unsafe fn own(ptr: *mut AVDictionary) -> Self

source

pub unsafe fn disown(self) -> *mut AVDictionary

source§

impl<'a> Owned<'a>

source

pub fn new() -> Self

Methods from Deref<Target = Ref<'a>>§

source

pub unsafe fn as_mut_ptr(&self) -> *mut AVDictionary

source

pub fn set(&mut self, key: &str, value: &str)

Methods from Deref<Target = Ref<'a>>§

source

pub unsafe fn as_ptr(&self) -> *const AVDictionary

source

pub fn get(&'a self, key: &str) -> Option<&'a str>

source

pub fn iter(&self) -> Iter<'_>

source

pub fn to_owned<'b>(&self) -> Owned<'b>

Trait Implementations§

source§

impl<'a> Clone for Owned<'a>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Debug for Owned<'a>

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Default for Owned<'a>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'a> Deref for Owned<'a>

§

type Target = Ref<'a>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<'a> DerefMut for Owned<'a>

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl<'a> Drop for Owned<'a>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'a, 'b> FromIterator<&'b (&'b str, &'b str)> for Owned<'a>

source§

fn from_iter<T: IntoIterator<Item = &'b (&'b str, &'b str)>>( iterator: T ) -> Self

Creates a value from an iterator. Read more
source§

impl<'a, 'b> FromIterator<&'b (String, String)> for Owned<'a>

source§

fn from_iter<T: IntoIterator<Item = &'b (String, String)>>(iterator: T) -> Self

Creates a value from an iterator. Read more
source§

impl<'a, 'b> FromIterator<(&'b str, &'b str)> for Owned<'a>

source§

fn from_iter<T: IntoIterator<Item = (&'b str, &'b str)>>(iterator: T) -> Self

Creates a value from an iterator. Read more
source§

impl<'a> FromIterator<(String, String)> for Owned<'a>

source§

fn from_iter<T: IntoIterator<Item = (String, String)>>(iterator: T) -> Self

Creates a value from an iterator. Read more

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Owned<'a>

§

impl<'a> !Send for Owned<'a>

§

impl<'a> !Sync for Owned<'a>

§

impl<'a> Unpin for Owned<'a>

§

impl<'a> UnwindSafe for Owned<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.