pub fn as_char(&self) -> Option<char> {
        match *self {
            Self::Char(c) => Some(c),
            _ => None,
        }
    }
/// Returns the value as a character if it is a character.
///
/// # Examples
///
/// ```
/// use noodles_sam::record::data::field::Value;
/// assert_eq!(Value::Char('a').as_char(), Some('a'));
/// assert_eq!(Value::Int(0).as_char(), None);
/// ```
Returns the value as a character if it is a character.
Returns the value as a character if it is a character .
pub fn as_char(&self) -> Option<char> {
        match *self {
            Self::Char(c) => Some(c),
            _ => None,
        }
    }
pub fn as_char ( & self ) -> Option < char > { match * self { Self :: Char ( c ) => Some ( c ) , _ => None , } }
Returns the value as a character if it is a character.
Returns the value as a character if it is a character .
&self
&self
examples
None