pub struct TagContainer { /* private fields */ }
Expand description

Provides a streamlined interface for retrieving Serato tag data.

If you’re not interested in the low-level format details, just use this instead of the low-level structs (e.g. Markers, Markers2, etc.)

Some of the data in Serato’s tags is redundant and may contradict each other. This class implements the same merge strategies for inconsistent data that Serato uses, too.

Implementations

Create an empty Serato tag container.

Parse the Serato Autotags tag.

Write the Serato Autotags tag.

Parse the Serato BeatGrid tag.

Write the Serato BeatGrid tag.

Parse the Serato Markers_ tag.

Write the Serato Markers_ tag.

Parse the Serato Markers2 tag.

Write the Serato Markers2 tag.

Parse the Serato Overview tag.

Write the Serato Overview tag.

Returns the auto_gain value from the Serato Autotags tag.

Returns the gain_db value from the Serato Autotags tag.

Returns the beatgrid from the Serato BeatGrid tag.

Returns BPM lock status from the Serato Markers2 tag.

Returns cues from the Serato Markers_ and Serato Markers2 tags.

This retrieves the Serato Markers2 cues first, then overwrite the values with those from Serato Markers_. This is what Serato does too (i.e. if Serato Markers_ and Serato Markers2 contradict each other, Serato will use the values from Serato Markers_).

Returns loops from the Serato Markers_ and Serato Markers2 tags.

This retrieves the Serato Markers2 loops first, then overwrite the values with those from Serato Markers_. This is what Serato does too (i.e. if Serato Markers_ and Serato Markers2 contradict each other, Serato will use the values from Serato Markers_).

Returns flips from the Serato Markers2 tag.

Returns the track color from the Serato Markers_ and Serato Markers2 tags.

If present the color in Serato Markers_ takes precedence over that in Serato Markers2. This is what Serato does too, i.e. if Serato Markers_ and Serato Markers2 contradict each other, Serato will use the value from Serato Markers_.

Returns the waveform overview data color from the Serato Overview tag.

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

Returns the “default value” for a type. Read more

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.