pub struct Chapter {
pub element_id: String,
pub start_time: u32,
pub end_time: u32,
pub start_offset: u32,
pub end_offset: u32,
pub frames: Vec<Frame>,
}
Fields
element_id: String
start_time: u32
end_time: u32
start_offset: u32
end_offset: u32
frames: Vec<Frame>
Trait Implementations
Extends a collection with the contents of an iterator. Read more
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns a reference to the first frame with the specified identifier. Read more
Adds the frame to the tag, replacing and returning any conflicting frame. Read more
Adds a text frame. Read more
fn set_text_values(
&mut self,
id: impl AsRef<str>,
texts: impl IntoIterator<Item = impl Into<String>>
)
fn set_text_values(
&mut self,
id: impl AsRef<str>,
texts: impl IntoIterator<Item = impl Into<String>>
)
Panics Read more
Remove all frames with the specified identifier and return them. Read more
Returns the year (TYER).
Returns None
if the year frame could not be found or if it could not be parsed. Read more
Removes the year (TYER). Read more
Return the content of the TRDC frame, if any Read more
Sets the content of the TDRC frame Read more
Remove the content of the TDRC frame Read more
Return the content of the TDRL frame, if any Read more
Sets the content of the TDRL frame Read more
Remove the content of the TDRL frame Read more
Sets the artist (TPE1). Read more
Removes the artist (TPE1). Read more
Sets the album artist (TPE2). Read more
Sets the album artist (TPE2). Read more
Removes the album artist (TPE2). Read more
Removes the album (TALB). Read more
Removes the title (TIT2). Read more
Sets the duration (TLEN). Read more
Removes the duration (TLEN). Read more
Removes the genre (TCON). Read more
Removes the disc number (TPOS). Read more
Returns the total number of discs (TPOS). Read more
Sets the total number of discs (TPOS). Read more
Removes the total number of discs (TPOS). Read more
Removes the track number (TRCK). Read more
Returns the total number of tracks (TRCK). Read more
Sets the total number of tracks (TRCK). Read more
Removes the total number of tracks (TCON). Read more
Use add_frame(frame::ExtendedText{ .. })
Adds a user defined text frame (TXXX). Read more
Removes the user defined text frame (TXXX) with the specified key and value. Read more
Use add_frame(frame::Picture{ .. })
Adds a picture frame (APIC). Any other pictures with the same type will be removed from the tag. Read more
Removes all pictures of the specified type. Read more
Removes all pictures. Read more
Removes the comment (COMM) with the specified key and value. Read more
Use add_frame(frame::EncapsulatedObject{ .. })
Adds an encapsulated object frame (GEOB). Read more
Removes the encapsulated object frame (GEOB) with the specified key, MIME type, filename and data. Read more
Removes the lyrics text (USLT) from the tag. Read more
Use add_frame(frame::SynchronisedLyrics{ .. })
Adds a synchronised lyrics frame (SYLT). Read more
Removes all synchronised lyrics (SYLT) frames from the tag. Read more
Adds a single chapter (CHAP) to the farme. Read more
Auto Trait Implementations
impl RefUnwindSafe for Chapter
impl UnwindSafe for Chapter
Blanket Implementations
Mutably borrows from an owned value. Read more