Struct triseratops::tag::analysis::Analysis
source · 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 EnvelopedTag for Analysis
impl EnvelopedTag for Analysis
source§impl MP4Tag for Analysis
impl MP4Tag for Analysis
source§const MP4_ATOM_FREEFORM_NAME: &'static str = "analysisVersion"
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"
const MP4_ATOM_FREEFORM_MEAN: &'static str = "com.serato.dj"
The mean part of the freeform
MP4_ATOM
that this data is stored in.fn parse_mp4(input: &[u8]) -> Result<Self, Error>
fn write_mp4(&self, writer: &mut impl Write) -> Result<usize, Error>
Auto Trait Implementations§
impl RefUnwindSafe for Analysis
impl Send for Analysis
impl Sync for Analysis
impl Unpin for Analysis
impl UnwindSafe for Analysis
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more