pub enum SubtitleRect {
Bitmap {
x: u32,
y: u32,
width: u32,
height: u32,
data: Vec<u8>,
palette: Vec<u32>,
},
Text(String),
Ass(String),
}Expand description
A single subtitle rectangle/region.
Variants§
Bitmap
Bitmap subtitle (e.g., DVD subtitles).
Text(String)
Text subtitle.
Ass(String)
ASS/SSA formatted subtitle.
Trait Implementations§
Source§impl Clone for SubtitleRect
impl Clone for SubtitleRect
Source§fn clone(&self) -> SubtitleRect
fn clone(&self) -> SubtitleRect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SubtitleRect
impl RefUnwindSafe for SubtitleRect
impl Send for SubtitleRect
impl Sync for SubtitleRect
impl Unpin for SubtitleRect
impl UnsafeUnpin for SubtitleRect
impl UnwindSafe for SubtitleRect
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more