mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2025-03-04 14:57:17 +00:00
Add AnyTag::new
Signed-off-by: Serial <69764315+Serial-ATA@users.noreply.github.com>
This commit is contained in:
parent
445d5751b6
commit
95a486e339
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue