Skip to main content

TimelineTrack

Struct TimelineTrack 

Source
pub struct TimelineTrack {
    pub interchange: InterchangeObjectFields,
    pub track_id: u32,
    pub track_number: u32,
    pub track_name: Option<String>,
    pub sequence: StrongRef,
    pub edit_rate: Rational,
    pub origin: i64,
    pub dark: Vec<(u16, Vec<u8>)>,
}
Expand description

The Timeline Track Set — SMPTE ST 377-1:2019 Annex B §B.12 (byte 14/15 = 0x01/0x3B): a timed track with a fixed edit rate and origin position.

Fields§

§interchange: InterchangeObjectFields

Interchange Object (A.1) base properties.

§track_id: u32

Track ID (0x4801, Req).

§track_number: u32

Track Number (0x4804, Req, default 0).

§track_name: Option<String>

Track Name (0x4802, Opt) — human-readable name.

§sequence: StrongRef

Sequence (0x4803, Req) — strong reference to a Sequence.

§edit_rate: Rational

Edit Rate (0x4B01, Req) — the track’s time base.

§origin: i64

Origin (0x4B02, Req) — the position of the first edit unit.

§dark: Vec<(u16, Vec<u8>)>

Unrecognized properties preserved for round-trip fidelity.

Trait Implementations§

Source§

impl Clone for TimelineTrack

Source§

fn clone(&self) -> TimelineTrack

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 TimelineTrack

Source§

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

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

impl Eq for TimelineTrack

Source§

impl<'a> Parse<'a> for TimelineTrack

Source§

type Error = Error

The error type this implementer returns. Typically the enclosing crate’s Error enum.
Source§

fn parse(bytes: &'a [u8]) -> Result<Self>

Parse bytes as Self. Returns Err(Self::Error) on any protocol violation or buffer underrun.
Source§

impl PartialEq for TimelineTrack

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl Serialize for TimelineTrack

Source§

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

Number of bytes serialize_into will write.
Source§

fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>

Write the serialised form into buf. Returns the number of bytes written (always equal to serialized_len()).
Source§

fn to_bytes(&self) -> Vec<u8>
where Self::Error: Debug,

Convenience: allocate a Vec and serialise into it. Read more
Source§

impl StructuralPartialEq for TimelineTrack

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.