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
sourceimpl EnvelopedTag for Analysis
impl EnvelopedTag for Analysis
sourceimpl MP4Tag for Analysis
impl MP4Tag for Analysis
sourceconst MP4_ATOM_FREEFORM_NAME: &'static str
const MP4_ATOM_FREEFORM_NAME: &'static str
The mean part of the freeform MP4_ATOM
that this data is stored in.
sourceconst MP4_ATOM_FREEFORM_MEAN: &'static str
const MP4_ATOM_FREEFORM_MEAN: &'static str
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more