pub struct Said {
pub mbid: String,
pub name: String,
}Expand description
What one file says about one artist, when it says it unambiguously.
Both halves come from the same file and the same tag pair, which is what makes them evidence rather than a coincidence.
Fields§
§mbid: StringThe identifier the file carries.
name: StringThe one artist name it carries beside it.
Owned rather than borrowed from the tags. The name a file credits is not always a string the file holds — a tag naming two artists is split before it gets here — so borrowing would mean handing back a slice of something the caller had just built. Two small allocations per file, against the cost of having read the file at all.
Auto Trait Implementations§
impl Freeze for Said
impl RefUnwindSafe for Said
impl Send for Said
impl Sync for Said
impl Unpin for Said
impl UnwindSafe for Said
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more