pub struct Analysis {
    pub version: Version,
}
Expand description

Represents the Serato Analysis tag.

This is probably the Serato Version number that performed the analysis.

Example

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

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

Fields§

§version: Version

The analysis version.

Trait Implementations§

source§

impl Debug for Analysis

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl EnvelopedTag for Analysis

source§

fn parse_enveloped(input: &[u8]) -> Result<Self, Error>

source§

fn write_enveloped(&self, writer: &mut impl Write) -> Result<usize, Error>

source§

impl FLACTag for Analysis

source§

const FLAC_COMMENT: &'static str = "SERATO_ANALYSIS"

Name of the VORBIS_COMMENT that this data is stored in.
source§

fn parse_flac(input: &[u8]) -> Result<Self, Error>

source§

fn write_flac(&self, writer: &mut impl Write) -> Result<usize, Error>

source§

impl ID3Tag for Analysis

source§

const ID3_TAG: &'static str = Self::NAME

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

fn parse_id3(input: &[u8]) -> Result<Self, Error>

source§

fn write_id3(&self, writer: &mut impl Write) -> Result<usize, Error>

source§

impl MP4Tag for Analysis

source§

const MP4_ATOM_FREEFORM_NAME: &'static str = "analysisVersion"

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

const MP4_ATOM_FREEFORM_MEAN: &'static str = "com.serato.dj"

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

fn parse_mp4(input: &[u8]) -> Result<Self, Error>

source§

fn write_mp4(&self, writer: &mut impl Write) -> Result<usize, Error>

source§

impl OggTag for Analysis

source§

const OGG_COMMENT: &'static str = "serato_analysis_ver"

Name of the MP4_ATOM that this data is stored in.
source§

fn parse_ogg(input: &[u8]) -> Result<Self, Error>

source§

fn write_ogg(&self, writer: &mut impl Write) -> Result<usize, Error>

source§

impl Tag for Analysis

source§

const NAME: &'static str = "Serato Analysis"

source§

fn parse(input: &[u8]) -> Result<Self, Error>

source§

fn write(&self, writer: &mut impl Write) -> Result<usize, Error>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.