pub struct StreamInfoParser;Expand description
Parses a minimal text header format into a list of StreamInfo records.
Expected format per line:
<index>,<type>,<codec_id>,<bitrate_bps>,<duration_ms>,<rate_num>,<rate_den>,<w>,<h>,<ch>
Lines starting with # are treated as comments and skipped.
Implementations§
Source§impl StreamInfoParser
impl StreamInfoParser
Sourcepub fn parse_header(&self, header: &str) -> Vec<StreamInfo>
pub fn parse_header(&self, header: &str) -> Vec<StreamInfo>
Parse a multi-line header string into a Vec<StreamInfo>.
Malformed lines are silently skipped.
Trait Implementations§
Source§impl Debug for StreamInfoParser
impl Debug for StreamInfoParser
Source§impl Default for StreamInfoParser
impl Default for StreamInfoParser
Source§fn default() -> StreamInfoParser
fn default() -> StreamInfoParser
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamInfoParser
impl RefUnwindSafe for StreamInfoParser
impl Send for StreamInfoParser
impl Sync for StreamInfoParser
impl Unpin for StreamInfoParser
impl UnsafeUnpin for StreamInfoParser
impl UnwindSafe for StreamInfoParser
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more