fn year(&self) -> Option<i32> {
        self.get("TYER")
            .and_then(|frame| frame.content().text())
            .and_then(|text| text.trim_start_matches('0').parse().ok())
    }
/// Returns the year (TYER).
/// Returns `None` if the year frame could not be found or if it could not be parsed.
///
/// # Example
/// ```
/// use id3::{Tag, TagLike, Frame};
/// use id3::frame::Content;
///
/// let mut tag = Tag::new();
/// assert!(tag.year().is_none());
///
/// tag.add_frame(Frame::text("TYER", "2014"));
/// assert_eq!(tag.year(), Some(2014));
///
/// tag.remove("TYER");
///
/// tag.add_frame(Frame::text("TYER", "nope"));
/// assert!(tag.year().is_none());
/// ```
Returns the year (TYER).
Returns `None` if the year frame could not be found or if it could not be parsed.
Returns the year ( TYER ) . Returns ` None ` if the year frame could not be found or if it could not be parsed .
fn year(&self) -> Option<i32> {
        self.get("TYER")
            .and_then(|frame| frame.content().text())
            .and_then(|text| text.trim_start_matches('0').parse().ok())
    }
fn year ( & self ) -> Option < i32 > { self . get ( " " ) . and_then ( | frame | frame . content ( ) . text ( ) ) . and_then ( | text | text . trim_start_matches ( '0' ) . parse ( ) . ok ( ) ) }
Returns the year (TYER).
Returns the year ( TYER ) .
&self
&self
example
```
use id3::{Tag, TagLike, Frame};
use id3::frame::Content.

let mut tag = Tag::new();
assert!(tag.year().is_none()).



tag.remove("TYER").


` ` ` use id3 :: { Tag TagLike Frame } ; use id3 :: frame :: Content . let mut tag = Tag :: new () ; assert! ( tag . year () . is_none () ) . tag . remove ( " TYER " ) .