[][src]Struct id3::Encoder

pub struct Encoder { /* fields omitted */ }

The Encoder may be used to encode tags.

Methods

impl Encoder[src]

pub fn encode(
    &self,
    tag: &Tag,
    writer: impl Write
) -> Result<()>
[src]

Encodes the specified tag using the settings set in the encoder.

Note that the plain tag is written, regardless of the original contents. To safely encode a tag to an MP3 file, use Encoder::encode_to_path.

pub fn encode_to_path(
    &self,
    tag: &Tag,
    path: impl AsRef<Path>
) -> Result<()>
[src]

Encodes a tag and replaces any existing tag in the file pointed to by the specified path.

Trait Implementations

impl Debug for Encoder[src]

Auto Trait Implementations

impl Send for Encoder

impl Sync for Encoder

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]