Trait lofty::MergeTag

source ·
pub trait MergeTag {
    type Merged: SplitTag;

    // Required method
    fn merge_tag(self, tag: Tag) -> Self::Merged;
}
Expand description

The counterpart of SplitTag.

Required Associated Types§

source

type Merged: SplitTag

The resulting tag.

Required Methods§

source

fn merge_tag(self, tag: Tag) -> Self::Merged

Merge a generic Tag back into the remainder of SplitTag::split_tag.

Restores the original representation merged with the contents of tag for further processing, e.g. writing back into a file.

Multi-valued items in tag with identical keys might get lost depending on the support for multi-valued fields in self.

Implementors§