pub struct PriorGaps {
pub group: Option<u64>,
pub object: Option<u64>,
}Expand description
The Prior Group ID Gap and Prior Object ID Gap one Object carries.
Fields§
§group: Option<u64>Prior Group ID Gap, if present.
object: Option<u64>Prior Object ID Gap, if present.
Implementations§
Source§impl PriorGaps
impl PriorGaps
Sourcepub fn from_properties(
properties: &[ObjectProperty<'_>],
group_id: u64,
object_id: u64,
) -> Result<Self, CodecError>
pub fn from_properties( properties: &[ObjectProperty<'_>], group_id: u64, object_id: u64, ) -> Result<Self, CodecError>
Read the two gaps from an Object’s parsed properties, Immutable Properties included, refusing the conditions one Object shows on its own.
Section 10.8 and Section 10.9 make the Track malformed when “An Object
contains more than one instance of Prior Group ID Gap”, when “An Object
has a Prior Group ID Gap larger than the Group ID”, and the same two
for Prior Object ID Gap against the Object ID. Each is
CodecError::MalformedTrack.
Trait Implementations§
impl Copy for PriorGaps
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