Serial-ATA / lofty-rs

Audio metadata library
Apache License 2.0
191 stars 36 forks source link

picture: add `into_data()` #173

Closed hinto-janai closed 1 year ago

hinto-janai commented 1 year ago

This adds some functions that exposes the inner data.

Since the inner Cow is Cow::Owned, into_owned() should be a cheap no-clone/no-allocation call.

Also, most libraries seem use bytes() or as_bytes() instead of data() but that'll break everyone's code, so, maybe not worth it.

hinto-janai commented 1 year ago

Ah, I see.

Requested changes were made.

Serial-ATA commented 1 year ago

Thanks!