pub fn as_str(&self) -> &str {
        use self::RangeFormat::*;

        match self {
            Clock => "clock",
            NPT => "npt",
            SMPTE => "smpte",
            SMPTE25 => "smpte-25",
            SMPTE30Drop => "smpte-30-drop",
            Extension(extension) => extension.as_str(),
        }
    }
/// Returns a `&str` representation of the range format.
///
/// The returned string is lowercase even if the range format originally was a non-lowercase
/// extension range format.
///
/// # Examples
///
/// ```
/// use std::convert::TryFrom;
///
/// use rtsp::header::types::accept_ranges::RangeFormat;
///
/// assert_eq!(RangeFormat::Clock.as_str(), "clock");
/// assert_eq!(RangeFormat::try_from("EXTENSION").unwrap().as_str(), "extension");
/// ```
Returns a `&str` representation of the range format.
The returned string is lowercase even if the range format originally was a non-lowercase
extension range format.
Returns a ` &str ` representation of the range format . The returned string is lowercase even if the range format originally was a non - lowercase extension range format .
pub fn as_str(&self) -> &str {
        use self::RangeFormat::*;
        match self {
            Clock => "clock",
            NPT => "npt",
            SMPTE => "smpte",
            SMPTE25 => "smpte-25",
            SMPTE30Drop => "smpte-30-drop",
            Extension(extension) => extension.as_str(),
        }
    }
pub fn as_str ( & self ) -> & str { use self :: RangeFormat :: * ; match self { Clock => " " , NPT => " " , SMPTE => " " , SMPTE25 => " " , SMPTE30Drop => " " , Extension ( extension ) => extension . as_str ( ) , } }
Returns a `&str` representation of the range format.
Returns a ` &str ` representation of the range format .
&self
&self
examples
```
use std::convert::TryFrom.

use rtsp::header::types::accept_ranges::RangeFormat.

assert_eq!(RangeFormat::Clock.as_str(), "clock");
assert_eq!(RangeFormat::try_from("EXTENSION").unwrap().as_str(), "extension");
```
` ` ` use std :: convert :: TryFrom . use rtsp :: header :: types :: accept_ranges :: RangeFormat . assert_eq! ( RangeFormat :: Clock . as_str () " clock " ) ; assert_eq! ( RangeFormat :: try_from ( " EXTENSION " ) . unwrap () . as_str () " extension " ) ; ` ` `