pub struct Beatgrid {
    pub version: Version,
    pub non_terminal_markers: Vec<NonTerminalMarker>,
    pub terminal_marker: TerminalMarker,
    pub footer: u8,
}
Expand description

Represents the Serato BeatGrid tag.

It stores the Beatgrid as a sequence of zero or more non-terminal beatgrid markers and a single terminal beatgrid markers.

Example

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

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

Fields

version: Version

The analysis version.

non_terminal_markers: Vec<NonTerminalMarker>

Zero or more non-terminal beatgrid markers.

terminal_marker: TerminalMarker

The terminal beatgrid marker.

footer: u8

A single footer byte that is apparently random (?).

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.

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.