pub struct PriorGaps {
pub group: Vec<u64>,
}Expand description
The Prior Group ID Gap values one Object carries.
draft-11 Section 10.1: “A track with a Group that contains more than one
Object with different values for Prior Group ID Gap or has a Prior Group ID
Gap larger than the Group ID is considered malformed.” This draft does not
limit an Object to one instance, so every value is kept. The least is
held to the Group ID, for the reason SubgroupGaps gives.
Fields§
§group: Vec<u64>Each Prior Group ID Gap, in wire order.
Implementations§
Source§impl PriorGaps
impl PriorGaps
Sourcepub fn from_properties(
properties: &[ObjectProperty<'_>],
group_id: u64,
) -> Result<Self, CodecError>
pub fn from_properties( properties: &[ObjectProperty<'_>], group_id: u64, ) -> Result<Self, CodecError>
Read the gaps from an Object’s parsed extension headers, refusing them
with CodecError::MalformedTrack when every one is larger than
group_id.
Sourcepub fn from_extensions(
extensions: &[u8],
group_id: u64,
) -> Result<Self, CodecError>
pub fn from_extensions( extensions: &[u8], group_id: u64, ) -> Result<Self, CodecError>
Self::from_properties on an extension block, refusing a block that
does not parse as crate::object_properties::parse_object_properties
does.
Trait Implementations§
impl Eq for PriorGaps
impl StructuralPartialEq for PriorGaps
Auto Trait Implementations§
impl Freeze for PriorGaps
impl RefUnwindSafe for PriorGaps
impl Send for PriorGaps
impl Sync for PriorGaps
impl Unpin for PriorGaps
impl UnsafeUnpin for PriorGaps
impl UnwindSafe for PriorGaps
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