pub struct Tag {
pub frames: IndexMap<String, Frame>,
}Expand description
A loaded (or fresh) tag, frames keyed and ordered as mutagen’s dict.
Fields§
§frames: IndexMap<String, Frame>Implementations§
Source§impl Tag
impl Tag
Sourcepub fn load(data: &[u8]) -> Option<Tag>
pub fn load(data: &[u8]) -> Option<Tag>
ID3(path) — None when the file has no ID3v2 header
(ID3NoHeaderError).
Sourcepub fn add(&mut self, frame: Frame)
pub fn add(&mut self, frame: Frame)
tags.add(frame) — replaces a frame with the same HashKey in place.
pub fn get(&self, key: &str) -> Option<&Frame>
Sourcefn frame_data(&self) -> Vec<u8> ⓘ
fn frame_data(&self) -> Vec<u8> ⓘ
ID3._write: the frame bytes in mutagen’s order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnsafeUnpin for Tag
impl UnwindSafe for Tag
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