pub fn type_info(&self) -> TypeInfo {
        match self {
            Self::Unit => TypeInfo::StaticType(runestick::UNIT_TYPE),
            Self::Byte(..) => TypeInfo::StaticType(runestick::BYTE_TYPE),
            Self::Char(..) => TypeInfo::StaticType(runestick::CHAR_TYPE),
            Self::Bool(..) => TypeInfo::StaticType(runestick::BOOL_TYPE),
            Self::String(..) => TypeInfo::StaticType(runestick::STRING_TYPE),
            Self::Bytes(..) => TypeInfo::StaticType(runestick::BYTES_TYPE),
            Self::Integer(..) => TypeInfo::StaticType(runestick::INTEGER_TYPE),
            Self::Float(..) => TypeInfo::StaticType(runestick::FLOAT_TYPE),
            Self::Option(..) => TypeInfo::StaticType(runestick::OPTION_TYPE),
            Self::Vec(..) => TypeInfo::StaticType(runestick::VEC_TYPE),
            Self::Tuple(..) => TypeInfo::StaticType(runestick::TUPLE_TYPE),
            Self::Object(..) => TypeInfo::StaticType(runestick::OBJECT_TYPE),
        }
    }
/// Get the type information of the value.
Get the type information of the value.
Get the type information of the value .
pub fn type_info(&self) -> TypeInfo {
        match self {
            Self::Unit => TypeInfo::StaticType(runestick::UNIT_TYPE),
            Self::Byte(..) => TypeInfo::StaticType(runestick::BYTE_TYPE),
            Self::Char(..) => TypeInfo::StaticType(runestick::CHAR_TYPE),
            Self::Bool(..) => TypeInfo::StaticType(runestick::BOOL_TYPE),
            Self::String(..) => TypeInfo::StaticType(runestick::STRING_TYPE),
            Self::Bytes(..) => TypeInfo::StaticType(runestick::BYTES_TYPE),
            Self::Integer(..) => TypeInfo::StaticType(runestick::INTEGER_TYPE),
            Self::Float(..) => TypeInfo::StaticType(runestick::FLOAT_TYPE),
            Self::Option(..) => TypeInfo::StaticType(runestick::OPTION_TYPE),
            Self::Vec(..) => TypeInfo::StaticType(runestick::VEC_TYPE),
            Self::Tuple(..) => TypeInfo::StaticType(runestick::TUPLE_TYPE),
            Self::Object(..) => TypeInfo::StaticType(runestick::OBJECT_TYPE),
        }
    }
pub fn type_info ( & self ) -> TypeInfo { match self { Self :: Unit => TypeInfo :: StaticType ( runestick :: UNIT_TYPE ) , Self :: Byte ( .. ) => TypeInfo :: StaticType ( runestick :: BYTE_TYPE ) , Self :: Char ( .. ) => TypeInfo :: StaticType ( runestick :: CHAR_TYPE ) , Self :: Bool ( .. ) => TypeInfo :: StaticType ( runestick :: BOOL_TYPE ) , Self :: String ( .. ) => TypeInfo :: StaticType ( runestick :: STRING_TYPE ) , Self :: Bytes ( .. ) => TypeInfo :: StaticType ( runestick :: BYTES_TYPE ) , Self :: Integer ( .. ) => TypeInfo :: StaticType ( runestick :: INTEGER_TYPE ) , Self :: Float ( .. ) => TypeInfo :: StaticType ( runestick :: FLOAT_TYPE ) , Self :: Option ( .. ) => TypeInfo :: StaticType ( runestick :: OPTION_TYPE ) , Self :: Vec ( .. ) => TypeInfo :: StaticType ( runestick :: VEC_TYPE ) , Self :: Tuple ( .. ) => TypeInfo :: StaticType ( runestick :: TUPLE_TYPE ) , Self :: Object ( .. ) => TypeInfo :: StaticType ( runestick :: OBJECT_TYPE ) , } }
Get the type information of the value.
Get the type information of the value .
&self
&self