pub struct SubtitlePacketExtra { /* private fields */ }Expand description
Per-SubtitlePacket extras.
Implementations§
Source§impl SubtitlePacketExtra
impl SubtitlePacketExtra
Sourcepub const fn new(stream_index: i32) -> Self
pub const fn new(stream_index: i32) -> Self
Constructs a SubtitlePacketExtra with the given stream index.
Sourcepub const fn stream_index(&self) -> i32
pub const fn stream_index(&self) -> i32
Returns the source AVStream.index.
Sourcepub const fn language(&self) -> Option<[u8; 3]>
pub const fn language(&self) -> Option<[u8; 3]>
Returns the ISO 639-2/T language tag, or None if unspecified.
Sourcepub const fn with_stream_index(self, value: i32) -> Self
pub const fn with_stream_index(self, value: i32) -> Self
Sets the stream index (consuming builder).
Sourcepub const fn with_language(self, value: Option<[u8; 3]>) -> Self
pub const fn with_language(self, value: Option<[u8; 3]>) -> Self
Sets the language tag (consuming builder).
Sourcepub const fn with_forced(self, value: bool) -> Self
pub const fn with_forced(self, value: bool) -> Self
Sets the forced flag (consuming builder).
Sourcepub const fn set_stream_index(&mut self, value: i32) -> &mut Self
pub const fn set_stream_index(&mut self, value: i32) -> &mut Self
Sets the stream index in place.
Sourcepub const fn set_language(&mut self, value: Option<[u8; 3]>) -> &mut Self
pub const fn set_language(&mut self, value: Option<[u8; 3]>) -> &mut Self
Sets the language tag in place.
Sourcepub const fn set_forced(&mut self, value: bool) -> &mut Self
pub const fn set_forced(&mut self, value: bool) -> &mut Self
Sets the forced flag in place.
Trait Implementations§
Source§impl Clone for SubtitlePacketExtra
impl Clone for SubtitlePacketExtra
Source§fn clone(&self) -> SubtitlePacketExtra
fn clone(&self) -> SubtitlePacketExtra
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubtitlePacketExtra
impl Debug for SubtitlePacketExtra
Source§impl Default for SubtitlePacketExtra
impl Default for SubtitlePacketExtra
Source§fn default() -> SubtitlePacketExtra
fn default() -> SubtitlePacketExtra
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SubtitlePacketExtra
impl RefUnwindSafe for SubtitlePacketExtra
impl Send for SubtitlePacketExtra
impl Sync for SubtitlePacketExtra
impl Unpin for SubtitlePacketExtra
impl UnsafeUnpin for SubtitlePacketExtra
impl UnwindSafe for SubtitlePacketExtra
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