#[non_exhaustive]pub struct Chapter {
pub id: u64,
pub time_base: Rational,
pub start: i64,
pub end: i64,
pub metadata: Dictionary,
}Expand description
One chapter: [start, end) in time_base units on
the presentation timeline, and its metadata (title, …).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u64The container’s identifier: Matroska ChapterUID, the position in the
list for MP4.
time_base: Rational§start: i64§end: i64Where the chapter ends; equal to start for a zero-length chapter.
Where the container records only starts (Nero chpl), the demuxer
fills in the next chapter’s start, or the end of the file.
metadata: Dictionarytitle, and any other tag the container attaches to the chapter.
Implementations§
Trait Implementations§
impl Eq for Chapter
impl StructuralPartialEq for Chapter
Auto Trait Implementations§
impl Forget for Chapter
impl Freeze for Chapter
impl Move for Chapter
impl RefUnwindSafe for Chapter
impl Send for Chapter
impl Sync for Chapter
impl Unpin for Chapter
impl UnsafeUnpin for Chapter
impl UnwindSafe for Chapter
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