Add AnyTag::new

Signed-off-by: Serial <69764315+Serial-ATA@users.noreply.github.com>
This commit is contained in:
Serial 2021-07-05 20:27:59 -04:00
parent 445d5751b6
commit 95a486e339

View file

@ -26,6 +26,10 @@ pub struct AnyTag<'a> {
}
impl<'a> AnyTag<'a> {
/// Create an empty [`AnyTag`]
pub fn new() -> Self {
Self::default()
}
/// Returns `title`.
pub fn title(&self) -> Option<&str> {
self.title.as_deref()