Enum mp4parse::AdvisoryRating
source · pub enum AdvisoryRating {
Clean,
Inoffensive,
Explicit(u8),
}
Expand description
Represents the parental advisory rating on the track, stored within the ‘rtng’ atom.
Variants§
Clean
Clean is always stored as 2 in an ‘rtng’ atom.
Inoffensive
A value of 0 in an ‘rtng’ atom indicates ‘Inoffensive’
Explicit(u8)
Any non 2 or 0 value in ‘rtng’ indicates the track is explicit.
Trait Implementations§
source§impl Clone for AdvisoryRating
impl Clone for AdvisoryRating
source§fn clone(&self) -> AdvisoryRating
fn clone(&self) -> AdvisoryRating
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 AdvisoryRating
impl Debug for AdvisoryRating
source§impl PartialEq<AdvisoryRating> for AdvisoryRating
impl PartialEq<AdvisoryRating> for AdvisoryRating
source§fn eq(&self, other: &AdvisoryRating) -> bool
fn eq(&self, other: &AdvisoryRating) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AdvisoryRating
impl StructuralEq for AdvisoryRating
impl StructuralPartialEq for AdvisoryRating
Auto Trait Implementations§
impl RefUnwindSafe for AdvisoryRating
impl Send for AdvisoryRating
impl Sync for AdvisoryRating
impl Unpin for AdvisoryRating
impl UnwindSafe for AdvisoryRating
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more