pub struct ApeTagField {
pub name: String,
pub value: Vec<u8>,
pub flags: u32,
}Fields§
§name: String§value: Vec<u8>§flags: u32Implementations§
Source§impl ApeTagField
impl ApeTagField
Sourcepub fn field_type(&self) -> TagFieldType
pub fn field_type(&self) -> TagFieldType
Returns the data type of this field based on its flags.
Sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
Returns true if this field is marked read-only.
Sourcepub fn value_as_str(&self) -> Option<&str>
pub fn value_as_str(&self) -> Option<&str>
Attempts to interpret the value as a UTF-8 string.
Returns None if the field is not a text field or the value is not valid UTF-8.
Trait Implementations§
Source§impl Clone for ApeTagField
impl Clone for ApeTagField
Source§fn clone(&self) -> ApeTagField
fn clone(&self) -> ApeTagField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ApeTagField
impl RefUnwindSafe for ApeTagField
impl Send for ApeTagField
impl Sync for ApeTagField
impl Unpin for ApeTagField
impl UnsafeUnpin for ApeTagField
impl UnwindSafe for ApeTagField
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