codec: impl AsMut
for all Context
wrappers
This commit is contained in:
@ -74,6 +74,12 @@ impl AsRef<Context> for Subtitle {
|
||||
}
|
||||
}
|
||||
|
||||
impl AsMut<Context> for Subtitle {
|
||||
fn as_mut(&mut self) -> &mut Context {
|
||||
&mut self.0
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Encoder(pub Subtitle);
|
||||
|
||||
impl Encoder {
|
||||
@ -100,3 +106,9 @@ impl AsRef<Context> for Encoder {
|
||||
&self
|
||||
}
|
||||
}
|
||||
|
||||
impl AsMut<Context> for Encoder {
|
||||
fn as_mut(&mut self) -> &mut Context {
|
||||
&mut self.0
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user