Expand description
Represents the Serato Markers_
tag.
It contains the the first 5 cue points, the first 9 loops and the color of the track.
This seems to be a legacy tag, since it lacks some information such as cue labels and all information of the Serato Markers_
tag is also part of the [Serato Markers2
](super::markers2] tag.
If the two tags contradict each other, Serato DJ will prefer the data from the Serato Markers_
tag.
Example
use triseratops::tag::{Markers, format::id3::ID3Tag};
// First, read the tag data from the ID3 GEOB tag (the tag name can be accessed using the
// Markers::ID3_TAG), then parse the data like this:
fn parse(data: &[u8]) {
let content = Markers::parse_id3(data).expect("Failed to parse data!");
println!("{:?}", content);
}
Fields
version: Version
The tag version.
entries: Vec<Marker>
The marker entries.
track_color: Color
The color of the track in Serato’s library view.
Implementations
Trait Implementations
sourceimpl EnvelopedTag for Markers
impl EnvelopedTag for Markers
sourceimpl MP4Tag for Markers
impl MP4Tag for Markers
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.
fn parse_mp4(input: &[u8]) -> Result<Self, Error>
fn write_mp4(&self, writer: &mut impl Write) -> Result<usize, Error>
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.
Auto Trait Implementations
impl RefUnwindSafe for Markers
impl Send for Markers
impl Sync for Markers
impl Unpin for Markers
impl UnwindSafe for Markers
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more