pub struct ChapterListAtom {
pub version: u8,
pub flags: [u8; 3],
pub reserved: [u8; 4],
pub chapters: ChapterEntries,
}Expand description
Chapter List Atom - contains chapter information for media
Fields§
§version: u8Version of the chpl atom format (1)
flags: [u8; 3]§reserved: [u8; 4]§chapters: ChapterEntriesList of chapter entries
Implementations§
Source§impl ChapterListAtom
impl ChapterListAtom
pub fn new(chapters: impl Into<ChapterEntries>) -> Self
pub fn replace_chapters(&mut self, chapters: impl Into<ChapterEntries>)
Trait Implementations§
Source§impl Clone for ChapterListAtom
impl Clone for ChapterListAtom
Source§fn clone(&self) -> ChapterListAtom
fn clone(&self) -> ChapterListAtom
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 ChapterListAtom
impl Debug for ChapterListAtom
Source§impl Default for ChapterListAtom
impl Default for ChapterListAtom
Source§impl From<ChapterListAtom> for AtomData
impl From<ChapterListAtom> for AtomData
Source§fn from(atom: ChapterListAtom) -> Self
fn from(atom: ChapterListAtom) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChapterListAtom
impl RefUnwindSafe for ChapterListAtom
impl Send for ChapterListAtom
impl Sync for ChapterListAtom
impl Unpin for ChapterListAtom
impl UnsafeUnpin for ChapterListAtom
impl UnwindSafe for ChapterListAtom
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more