Enum lofty::PictureType
source · [−]#[non_exhaustive]
pub enum PictureType {
Show 22 variants
Other,
Icon,
OtherIcon,
CoverFront,
CoverBack,
Leaflet,
Media,
LeadArtist,
Artist,
Conductor,
Band,
Composer,
Lyricist,
RecordingLocation,
DuringRecording,
DuringPerformance,
ScreenCapture,
BrightFish,
Illustration,
BandLogo,
PublisherLogo,
Undefined(u8),
}Expand description
The picture type, according to ID3v2 APIC
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Other
Icon
OtherIcon
CoverFront
CoverBack
Leaflet
Media
LeadArtist
Artist
Conductor
Band
Composer
Lyricist
RecordingLocation
DuringRecording
DuringPerformance
ScreenCapture
BrightFish
Illustration
BandLogo
PublisherLogo
Undefined(u8)
Implementations
sourceimpl PictureType
impl PictureType
sourcepub fn as_u8(&self) -> u8
Available on crate features id3v2 or vorbis_comments only.
pub fn as_u8(&self) -> u8
id3v2 or vorbis_comments only.Get a u8 from a PictureType according to ID3v2 APIC
sourcepub fn from_u8(byte: u8) -> Self
Available on crate features id3v2 or vorbis_comments only.
pub fn from_u8(byte: u8) -> Self
id3v2 or vorbis_comments only.Get a PictureType from a u8 according to ID3v2 APIC
sourcepub fn as_ape_key(&self) -> Option<&str>
Available on crate feature ape only.
pub fn as_ape_key(&self) -> Option<&str>
ape only.Get an APE item key from a PictureType
sourcepub fn from_ape_key(key: &str) -> Self
Available on crate feature ape only.
pub fn from_ape_key(key: &str) -> Self
ape only.Get a PictureType from an APE item key
Trait Implementations
sourceimpl Clone for PictureType
impl Clone for PictureType
sourcefn clone(&self) -> PictureType
fn clone(&self) -> PictureType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PictureType
impl Debug for PictureType
sourceimpl Hash for PictureType
impl Hash for PictureType
sourceimpl PartialEq<PictureType> for PictureType
impl PartialEq<PictureType> for PictureType
sourcefn eq(&self, other: &PictureType) -> bool
fn eq(&self, other: &PictureType) -> bool
impl Copy for PictureType
impl Eq for PictureType
impl StructuralEq for PictureType
impl StructuralPartialEq for PictureType
Auto Trait Implementations
impl RefUnwindSafe for PictureType
impl Send for PictureType
impl Sync for PictureType
impl Unpin for PictureType
impl UnwindSafe for PictureType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more