Enum ListChunk

Source
pub enum ListChunk {
    Info(BTreeMap<String, String>),
    Adtl(BTreeMap<u32, AdtlChunk>),
}

Variants§

Implementations§

Source§

impl ListChunk

Source

pub fn read( reader: &mut impl Reader, chunk_size: u64, text_encoding: &StringCodecMaps, ) -> Result<Self, AudioReadError>

Source

pub fn write( &self, writer: &mut dyn Writer, text_encoding: &StringCodecMaps, ) -> Result<(), AudioWriteError>

Trait Implementations§

Source§

impl Clone for ListChunk

Source§

fn clone(&self) -> ListChunk

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ListChunk

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ListChunk

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl ListInfo for ListChunk

Source§

fn get_is_list_info(&self) -> bool

Source§

fn get(&self, key: &str) -> Option<&String>

Source§

fn set(&mut self, key: &str, value: &str) -> Result<Option<String>, AudioError>

Source§

fn get_archive(&self) -> Option<&String>

Source§

fn get_artist(&self) -> Option<&String>

Source§

fn get_comment(&self) -> Option<&String>

Source§

fn get_producer(&self) -> Option<&String>

Source§

fn get_create_date(&self) -> Option<&String>

Source§

fn get_engineer(&self) -> Option<&String>

Source§

fn get_genre(&self) -> Option<&String>

Source§

fn get_keywords(&self) -> Option<&String>

Source§

fn get_lightness(&self) -> Option<&String>

Source§

fn get_medium(&self) -> Option<&String>

Source§

fn get_name(&self) -> Option<&String>

Source§

fn get_album(&self) -> Option<&String>

Source§

fn get_description(&self) -> Option<&String>

Source§

fn get_software(&self) -> Option<&String>

Source§

fn get_source(&self) -> Option<&String>

Source§

fn get_orig_form(&self) -> Option<&String>

Source§

fn get_technician(&self) -> Option<&String>

Source§

fn get_track_no(&self) -> Option<&String>

Source§

fn get_track_no_as_number(&self) -> Result<u32, AudioError>

Source§

fn set_archive(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_artist(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_comment(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_producer(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_create_date(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_engineer(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_genre(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_keywords(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_lightness(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_medium(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_name(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_album(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_description(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_software(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_source(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_orig_form(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_technician(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_track_no(&mut self, value: &str) -> Result<Option<String>, AudioError>

Source§

fn set_track_no_as_number(&mut self, track_no: u32) -> Result<u32, AudioError>

Source§

impl Ord for ListChunk

Source§

fn cmp(&self, other: &ListChunk) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for ListChunk

Source§

fn eq(&self, other: &ListChunk) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for ListChunk

Source§

fn partial_cmp(&self, other: &ListChunk) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Eq for ListChunk

Source§

impl StructuralPartialEq for ListChunk

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.