pub struct Markers2 {
pub version: Option<Version>,
pub size: usize,
pub content: Markers2Content,
}
Expand description
Represents the Serato Markers2
tag.
It contains all cue points, loops and flips, as well as the BPM-lock state and color of the track.
Note that some information is also duplicated in the legacy Serato Markers_
tag.
If the two tags contradict each other, Serato DJ will prefer the data from the Serato Markers_
tag.
Example
use triseratops::tag::{Markers2, format::id3::ID3Tag};
// First, read the tag data from the ID3 GEOB tag (the tag name can be accessed using the
// Markers2::ID3_TAG), then parse the data like this:
fn parse(data: &[u8]) {
let content = Markers2::parse_id3(data).expect("Failed to parse data!");
println!("{:?}", content);
}
Fields
version: Option<Version>
size: usize
content: Markers2Content
Implementations
Trait Implementations
sourceimpl EnvelopedTag for Markers2
impl EnvelopedTag for Markers2
sourceimpl MP4Tag for Markers2
impl MP4Tag for Markers2
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 Markers2
impl Send for Markers2
impl Sync for Markers2
impl Unpin for Markers2
impl UnwindSafe for Markers2
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