[−][src]Struct id3::Encoder
The Encoder may be used to encode tags.
Methods
impl Encoder
[src]
pub fn encode(
&self,
tag: &Tag,
writer: impl Write
) -> Result<()>
[src]
&self,
tag: &Tag,
writer: impl Write
) -> Result<()>
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]
&self,
tag: &Tag,
path: impl AsRef<Path>
) -> Result<()>
Encodes a tag and replaces any existing tag in the file pointed to by the specified path.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,