pub struct TagEdit { /* private fields */ }Expand description
A set of per-frame changes. Frames not mentioned are preserved.
Implementations§
Source§impl TagEdit
impl TagEdit
Sourcepub fn set(self, id: FrameId, value: impl Into<String>) -> Self
pub fn set(self, id: FrameId, value: impl Into<String>) -> Self
Sets a text frame. A blank value is treated as Change::Clear.
Sourcepub fn set_user_text(
self,
description: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn set_user_text( self, description: impl Into<String>, value: impl Into<String>, ) -> Self
Sets a user-defined text frame (TXXX) identified by description, for example
"MOOD". A blank value removes it.
Sourcepub fn clear_user_text(self, description: impl Into<String>) -> Self
pub fn clear_user_text(self, description: impl Into<String>) -> Self
Removes the user-defined text frame (TXXX) with this description.
Sourcepub fn set_comment(self, text: impl Into<String>) -> Self
pub fn set_comment(self, text: impl Into<String>) -> Self
Sets the general comment (COMM with an empty description). Blank removes it.
Sourcepub fn set_cover(self, picture: Picture) -> Self
pub fn set_cover(self, picture: Picture) -> Self
Embeds picture as the front cover, replacing any existing front cover.
Sourcepub fn clear_cover(self) -> Self
pub fn clear_cover(self) -> Self
Removes the front cover.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TagEdit
impl RefUnwindSafe for TagEdit
impl Send for TagEdit
impl Sync for TagEdit
impl Unpin for TagEdit
impl UnsafeUnpin for TagEdit
impl UnwindSafe for TagEdit
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