Struct lofty::id3::v2::AudioTextFrameFlags
source · pub struct AudioTextFrameFlags {
pub scrambling: bool,
}
Expand description
Flags for an ID3v2 audio-text flag
Fields§
§scrambling: bool
This flag shall be set if the scrambling method defined in Section 5 has been applied to the audio data, or not set if no scrambling has been applied.
Implementations§
source§impl AudioTextFrameFlags
impl AudioTextFrameFlags
sourcepub fn from_u8(byte: u8) -> Self
pub fn from_u8(byte: u8) -> Self
Get ID3v2 ATXT frame flags from a byte
The flag byte layout is defined here: https://mutagen-specs.readthedocs.io/en/latest/id3/id3v2-accessibility-1.0.html#proposed-audio-text-frame
sourcepub fn as_u8(&self) -> u8
pub fn as_u8(&self) -> u8
Convert an AudioTextFrameFlags
to an ATXT frame flag byte
The flag byte layout is defined here: https://mutagen-specs.readthedocs.io/en/latest/id3/id3v2-accessibility-1.0.html#proposed-audio-text-frame
Trait Implementations§
source§impl Clone for AudioTextFrameFlags
impl Clone for AudioTextFrameFlags
source§fn clone(&self) -> AudioTextFrameFlags
fn clone(&self) -> AudioTextFrameFlags
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 AudioTextFrameFlags
impl Debug for AudioTextFrameFlags
source§impl Hash for AudioTextFrameFlags
impl Hash for AudioTextFrameFlags
source§impl Ord for AudioTextFrameFlags
impl Ord for AudioTextFrameFlags
source§fn cmp(&self, other: &AudioTextFrameFlags) -> Ordering
fn cmp(&self, other: &AudioTextFrameFlags) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AudioTextFrameFlags
impl PartialEq for AudioTextFrameFlags
source§fn eq(&self, other: &AudioTextFrameFlags) -> bool
fn eq(&self, other: &AudioTextFrameFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AudioTextFrameFlags
impl PartialOrd for AudioTextFrameFlags
source§fn partial_cmp(&self, other: &AudioTextFrameFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &AudioTextFrameFlags) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AudioTextFrameFlags
impl Eq for AudioTextFrameFlags
impl StructuralPartialEq for AudioTextFrameFlags
Auto Trait Implementations§
impl Freeze for AudioTextFrameFlags
impl RefUnwindSafe for AudioTextFrameFlags
impl Send for AudioTextFrameFlags
impl Sync for AudioTextFrameFlags
impl Unpin for AudioTextFrameFlags
impl UnwindSafe for AudioTextFrameFlags
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