#[non_exhaustive]pub enum ContentGenre {
}Expand description
Content genre level-1 broad category — EN 300 468 Table 29.
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.
UndefinedContent
0x0 — undefined content.
MovieDrama
0x1 — Movie/Drama.
NewsCurrentAffairs
0x2 — News/Current Affairs.
ShowGameShow
0x3 — Show/Game Show.
Sports
0x4 — Sports.
ChildrenYouth
0x5 — Children/Youth programmes.
MusicBalletDance
0x6 — Music/Ballet/Dance.
ArtsCulture
0x7 — Arts/Culture (without music).
SocialPoliticalEconomics
0x8 — Social/Political issues/Economics.
EducationScienceFactual
0x9 — Education/Science/Factual topics.
LeisureHobbies
0xA — Leisure hobbies.
SpecialCharacteristics
0xB — Special characteristics.
Adult
0xC — Adult.
Reserved(u8)
0xD..=0xE — reserved for future use, preserved verbatim.
UserDefined(u8)
0xF — user defined, preserved verbatim.
Implementations§
Source§impl ContentGenre
impl ContentGenre
Sourcepub fn from_nibble_1(n1: u8) -> Self
pub fn from_nibble_1(n1: u8) -> Self
Convert a level-1 nibble to a ContentGenre.
The input must be a 4-bit nibble value (0..=0xF); values outside
this range are masked with & 0x0F.
Sourcepub fn to_nibble_1(self) -> u8
pub fn to_nibble_1(self) -> u8
Returns the level-1 nibble for this genre (inverse of
ContentGenre::from_nibble_1).
Trait Implementations§
Source§impl Clone for ContentGenre
impl Clone for ContentGenre
Source§fn clone(&self) -> ContentGenre
fn clone(&self) -> ContentGenre
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContentGenre
Source§impl Debug for ContentGenre
impl Debug for ContentGenre
Source§impl Display for ContentGenre
impl Display for ContentGenre
impl Eq for ContentGenre
Source§impl PartialEq for ContentGenre
impl PartialEq for ContentGenre
Source§fn eq(&self, other: &ContentGenre) -> bool
fn eq(&self, other: &ContentGenre) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContentGenre
impl Serialize for ContentGenre
impl StructuralPartialEq for ContentGenre
Auto Trait Implementations§
impl Freeze for ContentGenre
impl RefUnwindSafe for ContentGenre
impl Send for ContentGenre
impl Sync for ContentGenre
impl Unpin for ContentGenre
impl UnsafeUnpin for ContentGenre
impl UnwindSafe for ContentGenre
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