codec/encoder/subtitle: implement DerefMut
This commit is contained in:
parent
cd9db3adc5
commit
6f07c48a04
@ -1,4 +1,4 @@
|
||||
use std::ops::Deref;
|
||||
use std::ops::{Deref, DerefMut};
|
||||
|
||||
use libc::c_int;
|
||||
use ffi::*;
|
||||
@ -26,3 +26,9 @@ impl Deref for Subtitle {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl DerefMut for Subtitle {
|
||||
fn deref_mut(&mut self) -> &mut<Self as Deref>::Target {
|
||||
&mut self.0
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user