pub struct SegmentTypeBox {
pub major_brand: [u8; 4],
pub minor_version: u32,
pub compatible_brands: Vec<[u8; 4]>,
}Expand description
Segment Type Box (styp) — ISO/IEC 14496-12:2015 §8.16.2.
The first box of a media segment; same layout as FileTypeBox but with
the styp four-CC.
Fields§
§major_brand: [u8; 4]Best-use brand (e.g. msdh).
minor_version: u32Minor version of the major brand.
compatible_brands: Vec<[u8; 4]>Brands the segment is compatible with.
Implementations§
Trait Implementations§
Source§impl Clone for SegmentTypeBox
impl Clone for SegmentTypeBox
Source§fn clone(&self) -> SegmentTypeBox
fn clone(&self) -> SegmentTypeBox
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 SegmentTypeBox
impl Debug for SegmentTypeBox
impl Eq for SegmentTypeBox
Source§impl PartialEq for SegmentTypeBox
impl PartialEq for SegmentTypeBox
Source§impl Serialize for SegmentTypeBox
impl Serialize for SegmentTypeBox
Source§impl Serialize for SegmentTypeBox
impl Serialize for SegmentTypeBox
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for SegmentTypeBox
Auto Trait Implementations§
impl Freeze for SegmentTypeBox
impl RefUnwindSafe for SegmentTypeBox
impl Send for SegmentTypeBox
impl Sync for SegmentTypeBox
impl Unpin for SegmentTypeBox
impl UnsafeUnpin for SegmentTypeBox
impl UnwindSafe for SegmentTypeBox
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