/// The amount of views this video has.
The amount of views this video has.
The amount of views this video has .
pub fn views(&self) -> Option<u64> {
        let s: &str = match self.0.view_count_text.as_ref()? {
            // "<VIEWS> views"
            crate::youtube::Text::SimpleText(simple) => {
                simple
                    .simple_text
                    .split_once(' ')
                    .expect("No space in view_count_text")
                    .0
            }
            // ["<VIEWS>", ..]
            crate::youtube::Text::Runs(runs) => &runs.runs[0].text,
        };
        Some(s.replace(',', "").parse().expect("Views were not parsable"))
    }
pub fn views ( & self ) -> Option < u64 > { let s : & str = match self . 0 . view_count_text . as_ref ( ) ? { // "<VIEWS> views" crate :: youtube :: Text :: SimpleText ( simple ) => { simple . simple_text . split_once ( ' ' ) . expect ( " " ) . 0 } // ["<VIEWS>", ..] crate :: youtube :: Text :: Runs ( runs ) => & runs . runs [ 0 ] . text , } ; Some ( s . replace ( ',' , " " ) . parse ( ) . expect ( " " ) ) }
The amount of views this video has.
The amount of views this video has .
&self