pub struct ApeTag {
pub version: u32,
pub fields: Vec<ApeTagField>,
pub has_header: bool,
}Fields§
§version: u32§fields: Vec<ApeTagField>§has_header: boolImplementations§
Source§impl ApeTag
impl ApeTag
Sourcepub fn field(&self, name: &str) -> Option<&ApeTagField>
pub fn field(&self, name: &str) -> Option<&ApeTagField>
Case-insensitive field lookup by name.
Sourcepub fn get(&self, name: &str) -> Option<&str>
pub fn get(&self, name: &str) -> Option<&str>
Convenience method: get the string value of a text field by name (case-insensitive).
Sourcepub fn set(&mut self, name: &str, value: &str)
pub fn set(&mut self, name: &str, value: &str)
Set a UTF-8 text field. Creates the field if it doesn’t exist, or updates the value if it does (case-insensitive name match).
Sourcepub fn set_binary(&mut self, name: &str, value: Vec<u8>)
pub fn set_binary(&mut self, name: &str, value: Vec<u8>)
Set a binary field. Creates or updates (case-insensitive name match).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApeTag
impl RefUnwindSafe for ApeTag
impl Send for ApeTag
impl Sync for ApeTag
impl Unpin for ApeTag
impl UnsafeUnpin for ApeTag
impl UnwindSafe for ApeTag
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