Struct Id3Tag

Source
pub struct Id3Tag<'a> {
    pub title: &'a [u8],
    pub artist: &'a [u8],
    pub album: &'a [u8],
    pub album_art: &'a [u8],
    pub year: &'a [u8],
    pub comment: &'a [u8],
}
Expand description

ID3 tag as raw bytes.

Use empty slice for None

At the current moment, only up to 250 characters will be copied.

Fields§

§title: &'a [u8]

Track’s Title

§artist: &'a [u8]

Artist name

§album: &'a [u8]

Album name

§album_art: &'a [u8]

Album art

Must be image data.

Allowed formats: PNG, JPG, GIF

Maximum size is defined by constant MAX_ALBUM_ART_SIZE When setting this metadata, make sure allocate at least MAX_ALBUM_ART_SIZE

§year: &'a [u8]

Year

§comment: &'a [u8]

Comment

Implementations§

Source§

impl Id3Tag<'_>

Source

pub const fn is_any_set(&self) -> bool

Returns true if any is set

Auto Trait Implementations§

§

impl<'a> Freeze for Id3Tag<'a>

§

impl<'a> RefUnwindSafe for Id3Tag<'a>

§

impl<'a> Send for Id3Tag<'a>

§

impl<'a> Sync for Id3Tag<'a>

§

impl<'a> Unpin for Id3Tag<'a>

§

impl<'a> UnwindSafe for Id3Tag<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.