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