pub struct BlockDuration(pub u64);Expand description
The duration of the Block, expressed in Track Ticks; see (#timestamp-ticks).
The BlockDuration element can be useful
at the end of a Track to define the duration of the last frame (as
there is no subsequent Block available) or when there is a break in a
track like for subtitle tracks.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for BlockDuration
impl Clone for BlockDuration
Source§fn clone(&self) -> BlockDuration
fn clone(&self) -> BlockDuration
Returns a duplicate of the value. Read more
1.0.0 · 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 BlockDuration
impl Debug for BlockDuration
Source§impl Default for BlockDuration
impl Default for BlockDuration
Source§impl Deref for BlockDuration
impl Deref for BlockDuration
Source§impl Element for BlockDuration
impl Element for BlockDuration
Source§fn decode_body<B: Buf>(buf: &mut B) -> Result<Self>
fn decode_body<B: Buf>(buf: &mut B) -> Result<Self>
Decode the body of the element from a buffer.
Source§fn encode_body<B: BufMut>(&self, buf: &mut B) -> Result<()>
fn encode_body<B: BufMut>(&self, buf: &mut B) -> Result<()>
Encode the body of the element to a buffer.
Source§const HAS_DEFAULT_VALUE: bool = false
const HAS_DEFAULT_VALUE: bool = false
Whether the element has a default value, as per Matroska specification.
If true, and the element is missing in a master element, it should be treated as if it were present with the default value.
If false, and the element is missing in a master element, it should be treated as an error.
Source§impl Hash for BlockDuration
impl Hash for BlockDuration
Source§impl Ord for BlockDuration
impl Ord for BlockDuration
Source§fn cmp(&self, other: &BlockDuration) -> Ordering
fn cmp(&self, other: &BlockDuration) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BlockDuration
impl PartialEq for BlockDuration
Source§impl PartialOrd for BlockDuration
impl PartialOrd for BlockDuration
impl Copy for BlockDuration
impl Eq for BlockDuration
impl StructuralPartialEq for BlockDuration
Auto Trait Implementations§
impl Freeze for BlockDuration
impl RefUnwindSafe for BlockDuration
impl Send for BlockDuration
impl Sync for BlockDuration
impl Unpin for BlockDuration
impl UnsafeUnpin for BlockDuration
impl UnwindSafe for BlockDuration
Blanket Implementations§
Source§impl<T> AsyncReadElement for Twhere
T: Element,
impl<T> AsyncReadElement for Twhere
T: Element,
Source§impl<T> AsyncReadFrom for Twhere
T: Element,
impl<T> AsyncReadFrom for Twhere
T: Element,
Source§impl<T> AsyncWriteElement for Twhere
T: Element,
impl<T> AsyncWriteElement for Twhere
T: Element,
Source§impl<T> AsyncWriteTo for Twhere
T: Encode,
impl<T> AsyncWriteTo for Twhere
T: Encode,
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