pub struct Markers2 {
    pub version: Option<Version>,
    pub size: usize,
    pub content: Markers2Content,
}
Expand description

Represents the Serato Markers2 tag.

It contains all cue points, loops and flips, as well as the BPM-lock state and color of the track.

Note that some information is also duplicated in the legacy Serato Markers_ tag. If the two tags contradict each other, Serato DJ will prefer the data from the Serato Markers_ tag.

Example

use triseratops::tag::{Markers2, format::id3::ID3Tag};

// First, read the tag data from the ID3 GEOB tag (the tag name can be accessed using the
// Markers2::ID3_TAG), then parse the data like this:
fn parse(data: &[u8]) {
    let content = Markers2::parse_id3(data).expect("Failed to parse data!");
    println!("{:?}", content);
}

Fields

version: Option<Version>size: usizecontent: Markers2Content

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Name of the VORBIS_COMMENT that this data is stored in.

Name of the ID3 tag that this data is stored in.

The mean part of the freeform MP4_ATOM that this data is stored in.

The mean part of the freeform MP4_ATOM that this data is stored in.

Name of the MP4_ATOM that this data is stored in.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.