Crates.io | ape |
lib.rs | ape |
version | |
source | src |
created_at | 2016-01-16 18:00:11.060923+00 |
updated_at | 2025-02-04 04:00:03.33402+00 |
description | A library for reading and writing APEv2 tags |
homepage | |
repository | https://github.com/rossnomann/ape |
max_upload_size | |
id | 3905 |
Cargo.toml error: | TOML parse error at line 22, column 1 | 22 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A library for reading and writing APEv2 tags.
Fixed multiple values support.
You may need to overwrite your tags if you have called the Tag::add_item
method with the same key multiple times,
since the spec states that
"Every Tag Item Key can only occures (at most) once".
TryFrom<&Item>
trait implementation for Vec<&str>
and &str
.TryFrom<Item>
trait implementation for Vec<String>
and String
.ItemValue
enum and Item.value
field; use TryFrom
instead.ItemType { Binary, Locator, Text }
enum.Item::new(key, type, value)
method.Item::from_binary
, Item::from_locator
and Item::from_text
methods; use Item::new
method instead.Item.add_value
method.Tag::add_item
method; use Item.add_value
instead.Item::with_type
method.Item::with_value
method.Item.get_type
method.Error
enum:
FromUtf8
, ParseInt
ParseItemKey
, ParseItemBinary
, ParseItemValue
, ParseLyrics3V2SizeStr
, ParseLyrics3V2SizeInt
.BadItemType
-> InvalidItemType(u32)
.BadTagSize
-> InvalidTagSize
.Tag::items
method.Tag::add_item
method.Tag::remove_item
by Tag::remove_items
method.
Tag::item
method returns a first found item.
Tag::set_item
removes all items under the given key and adds a new one.Clone
for Item
and ItemValue
structs.Item::from_locator
and Item::from_text
.Error::description
.Item::to_vec
method is private now.items
field from the Tag
struct.Tag::iter()
method.IntoIterator
implementation for Tag
struct.Tag::write
method replaced by write
function.Result<()>
instead of Option<Error>
.The MIT License (MIT)