pub fn as_float(&self) -> Option<f32> {
        match *self {
            Self::Float(s) => Some(s),
            _ => None,
        }
    }
/// Returns the value as a single-precision floating-point if it is a single-precision
/// float-point.
///
/// # Examples
///
/// ```
/// use noodles_sam::record::data::field::Value;
/// assert_eq!(Value::Float(0.0).as_float(), Some(0.0));
/// assert_eq!(Value::Int(0).as_float(), None);
/// ```
Returns the value as a single-precision floating-point if it is a single-precision
float-point.
Returns the value as a single - precision floating - point if it is a single - precision float - point .
pub fn as_float(&self) -> Option<f32> {
        match *self {
            Self::Float(s) => Some(s),
            _ => None,
        }
    }
pub fn as_float ( & self ) -> Option < f32 > { match * self { Self :: Float ( s ) => Some ( s ) , _ => None , } }
Returns the value as a single-precision floating-point if it is a single-precision
float-point.
Returns the value as a single - precision floating - point if it is a single - precision float - point .
&self
&self
examples
None