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§
source§impl PictureType
impl PictureType
sourcepub fn as_ape_key(&self) -> Option<&str>
pub fn as_ape_key(&self) -> Option<&str>
Get an APE item key from a PictureType
sourcepub fn from_ape_key(key: &str) -> Self
pub fn from_ape_key(key: &str) -> Self
Get a PictureType
from an APE item key
Trait Implementations§
source§impl Clone for PictureType
impl Clone for PictureType
source§fn clone(&self) -> PictureType
fn clone(&self) -> PictureType
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 PictureType
impl Debug for PictureType
source§impl Hash for PictureType
impl Hash for PictureType
source§impl PartialEq for PictureType
impl PartialEq for PictureType
source§fn eq(&self, other: &PictureType) -> bool
fn eq(&self, other: &PictureType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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