Skip to main content

PriorGaps

Struct PriorGaps 

Source
pub struct PriorGaps {
    pub group: Vec<u64>,
}
Expand description

The Prior Group ID Gap values one Object carries.

draft-13 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.” Malformed Tracks are draft-13 Section 2.5. 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

Source

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.

Source

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§

Source§

impl Clone for PriorGaps

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PriorGaps

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PriorGaps

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for PriorGaps

Source§

impl PartialEq for PriorGaps

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PriorGaps

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.