codec: implement DerefMut for encoder::Audio and encoder::Subtitle
This commit is contained in:
@ -193,6 +193,12 @@ impl Deref for Encoder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl DerefMut for Encoder {
|
||||||
|
fn deref_mut(&mut self) -> &mut <Self as Deref>::Target {
|
||||||
|
&mut self.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl AsRef<Context> for Encoder {
|
impl AsRef<Context> for Encoder {
|
||||||
fn as_ref(&self) -> &Context {
|
fn as_ref(&self) -> &Context {
|
||||||
self
|
self
|
||||||
|
@ -108,6 +108,12 @@ impl Deref for Encoder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl DerefMut for Encoder {
|
||||||
|
fn deref_mut(&mut self) -> &mut <Self as Deref>::Target {
|
||||||
|
&mut self.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl AsRef<Context> for Encoder {
|
impl AsRef<Context> for Encoder {
|
||||||
fn as_ref(&self) -> &Context {
|
fn as_ref(&self) -> &Context {
|
||||||
self
|
self
|
||||||
|
Reference in New Issue
Block a user