dictionary/owned: impl Default
This commit is contained in:
parent
38d1e882f2
commit
575b440267
@ -9,6 +9,12 @@ pub struct Owned<'a> {
|
||||
inner: mutable::Ref<'a>,
|
||||
}
|
||||
|
||||
impl<'a> Default for Owned<'a> {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Owned<'a> {
|
||||
pub unsafe fn own(ptr: *mut AVDictionary) -> Self {
|
||||
Owned { inner: mutable::Ref::wrap(ptr) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user