pub struct Encoder { /* private fields */ }
Expand description
The Encoder
may be used to encode tags with custom settings.
Implementations
Constructs a new Encoder
with the following configuration:
Version
is ID3v2.4- Unsynchronization is disabled due to compatibility issues
- No compression
- File is not marked as altered
Sets the padding that is written after the tag.
Should be only used when writing to a MP3 file
Enables or disables the unsynchronisation scheme.
This avoids patterns that resemble MP3-frame headers from being encoded. If you are encoding to MP3 files and wish to be compatible with very old tools, you probably want this enabled.
Enables or disables compression.
Informs the encoder whether the file this tag belongs to has been changed.
This subsequently discards any tags that have their File Alter Preservation bits set and that have a relation to the file contents:
AENC, ETCO, EQUA, MLLT, POSS, SYLT, SYTC, RVAD, TENC, TLEN, TSIZ
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
.
Encodes a Tag
and replaces any existing tag in the file.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Encoder
impl UnwindSafe for Encoder
Blanket Implementations
Mutably borrows from an owned value. Read more