pub struct Stream {
pub index: usize,
pub content: ContentKind,
pub label: Option<String>,
}Expand description
One observed or declared stream inside a container.
Fields§
§index: usizeStream position within the file, as reported by the inspecting adapter.
content: ContentKindContent category and codec tag of this stream.
label: Option<String>Adapter-supplied human-readable detail, such as dimensions or bitrate.
Implementations§
Source§impl Stream
impl Stream
Sourcepub fn new(index: usize, content: ContentKind) -> Stream
pub fn new(index: usize, content: ContentKind) -> Stream
Construct a stream at index carrying content, without a label.
Sourcepub fn with_label(self, label: &str) -> Stream
pub fn with_label(self, label: &str) -> Stream
Attach a human-readable detail string; see Self::label.
Trait Implementations§
impl Eq for Stream
impl StructuralPartialEq for Stream
Auto Trait Implementations§
impl Forget for Stream
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnsafeUnpin for Stream
impl UnwindSafe for Stream
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.