Expand description
Represents the Serato AutoTags
tag.
It stores BPM an gain values.
Example
use triseratops::tag::{Autotags, format::id3::ID3Tag};
// First, read the tag data from the ID3 GEOB tag (the tag name can be accessed using the
// Autotags::ID3_TAG), then parse the data like this:
fn parse(data: &[u8]) {
let content = Autotags::parse_id3(data).expect("Failed to parse data!");
println!("{:?}", content);
}
Fields
version: Version
The tag version.
bpm: f64
The track’s number of beats per minute (BPM).
auto_gain: f64
The track’s autogain values (probably comparable to ReplayGain).
gain_db: f64
The track’s gain value (manual?).
Trait Implementations
sourceimpl EnvelopedTag for Autotags
impl EnvelopedTag for Autotags
sourceimpl MP4Tag for Autotags
impl MP4Tag for Autotags
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>
impl Copy for Autotags
Auto Trait Implementations
impl RefUnwindSafe for Autotags
impl Send for Autotags
impl Sync for Autotags
impl Unpin for Autotags
impl UnwindSafe for Autotags
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more