use std::borrow::Cow;
use crate::stata::stata_byte::StataByte;
use crate::stata::stata_double::StataDouble;
use crate::stata::stata_float::StataFloat;
use crate::stata::stata_int::StataInt;
use crate::stata::stata_long::StataLong;
#[derive(Debug, Clone, PartialEq)]
pub enum Value<'a> {
Byte(StataByte),
Int(StataInt),
Long(StataLong),
Float(StataFloat),
Double(StataDouble),
String(Cow<'a, str>),
}
impl<'a> Value<'a> {
#[must_use]
#[inline]
pub fn string(s: &'a str) -> Self {
Self::String(Cow::Borrowed(s))
}
}