pub fn as_hex(&self) -> Option<&str> {
        match *self {
            Self::Hex(ref h) => Some(h),
            _ => None,
        }
    }
/// Returns the value as a string slice of hex if it is a string slice of hex.
///
/// # Examples
///
/// ```
/// use noodles_sam::record::data::field::Value;
/// assert_eq!(Value::Hex(String::from("cafe")).as_hex(), Some("cafe"));
/// assert_eq!(Value::Int(0).as_hex(), None);
/// ```
Returns the value as a string slice of hex if it is a string slice of hex.
Returns the value as a string slice of hex if it is a string slice of hex .
pub fn as_hex(&self) -> Option<&str> {
        match *self {
            Self::Hex(ref h) => Some(h),
            _ => None,
        }
    }
pub fn as_hex ( & self ) -> Option < & str > { match * self { Self :: Hex ( ref h ) => Some ( h ) , _ => None , } }
Returns the value as a string slice of hex if it is a string slice of hex.
Returns the value as a string slice of hex if it is a string slice of hex .
&self
&self
examples
None