Struct lofty::id3::v2::SynchronizedText
source · pub struct SynchronizedText {
pub encoding: TextEncoding,
pub language: [u8; 3],
pub timestamp_format: TimestampFormat,
pub content_type: SyncTextContentType,
pub description: Option<String>,
pub content: Vec<(u32, String)>,
}Expand description
Represents an ID3v2 synchronized text frame
Fields§
§encoding: TextEncodingThe text encoding (description/text)
language: [u8; 3]ISO-639-2 language code (3 bytes)
timestamp_format: TimestampFormatThe format of the timestamps
content_type: SyncTextContentTypeThe type of content stored
description: Option<String>Unique content description
content: Vec<(u32, String)>Collection of timestamps and text
Implementations§
source§impl SynchronizedText
impl SynchronizedText
sourcepub fn parse(data: &[u8]) -> Result<Self>
pub fn parse(data: &[u8]) -> Result<Self>
Read a SynchronizedText from a slice
NOTE: This expects the frame header to have already been skipped
Errors
This function will return BadSyncText if at any point it’s unable to parse the data
Trait Implementations§
source§impl Clone for SynchronizedText
impl Clone for SynchronizedText
source§fn clone(&self) -> SynchronizedText
fn clone(&self) -> SynchronizedText
Returns a copy 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 moresource§impl Debug for SynchronizedText
impl Debug for SynchronizedText
source§impl Hash for SynchronizedText
impl Hash for SynchronizedText
source§impl PartialEq for SynchronizedText
impl PartialEq for SynchronizedText
source§fn eq(&self, other: &SynchronizedText) -> bool
fn eq(&self, other: &SynchronizedText) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for SynchronizedText
impl StructuralEq for SynchronizedText
impl StructuralPartialEq for SynchronizedText
Auto Trait Implementations§
impl RefUnwindSafe for SynchronizedText
impl Send for SynchronizedText
impl Sync for SynchronizedText
impl Unpin for SynchronizedText
impl UnwindSafe for SynchronizedText
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