pub fn ty(&self) -> Type {
        match *self {
            Self::Char(_) => Type::Char,
            Self::Int(_) => Type::Int,
            Self::Float(_) => Type::Float,
            Self::String(_) => Type::String,
            Self::Hex(_) => Type::Hex,
            Self::Int8Array(_) => Type::Array,
            Self::UInt8Array(_) => Type::Array,
            Self::Int16Array(_) => Type::Array,
            Self::UInt16Array(_) => Type::Array,
            Self::Int32Array(_) => Type::Array,
            Self::UInt32Array(_) => Type::Array,
            Self::FloatArray(_) => Type::Array,
        }
    }
/// Returns the type of the value.
///
/// # Examples
///
/// ```
/// use noodles_sam::record::data::field::{value::Type, Value};
/// assert_eq!(Value::Int(0).ty(), Type::Int);
/// ```
Returns the type of the value.
Returns the type of the value .
pub fn ty(&self) -> Type {
        match *self {
            Self::Char(_) => Type::Char,
            Self::Int(_) => Type::Int,
            Self::Float(_) => Type::Float,
            Self::String(_) => Type::String,
            Self::Hex(_) => Type::Hex,
            Self::Int8Array(_) => Type::Array,
            Self::UInt8Array(_) => Type::Array,
            Self::Int16Array(_) => Type::Array,
            Self::UInt16Array(_) => Type::Array,
            Self::Int32Array(_) => Type::Array,
            Self::UInt32Array(_) => Type::Array,
            Self::FloatArray(_) => Type::Array,
        }
    }
pub fn ty ( & self ) -> Type { match * self { Self :: Char ( _ ) => Type :: Char , Self :: Int ( _ ) => Type :: Int , Self :: Float ( _ ) => Type :: Float , Self :: String ( _ ) => Type :: String , Self :: Hex ( _ ) => Type :: Hex , Self :: Int8Array ( _ ) => Type :: Array , Self :: UInt8Array ( _ ) => Type :: Array , Self :: Int16Array ( _ ) => Type :: Array , Self :: UInt16Array ( _ ) => Type :: Array , Self :: Int32Array ( _ ) => Type :: Array , Self :: UInt32Array ( _ ) => Type :: Array , Self :: FloatArray ( _ ) => Type :: Array , } }
Returns the type of the value.
Returns the type of the value .
&self
&self
examples
None