pub fn as_ref<'r: 's>(&'r self) -> ScalarCow<'r> {
        match self.0 {
            ScalarCowEnum::Integer(x) => ScalarCow::new(x),
            ScalarCowEnum::Float(x) => ScalarCow::new(x),
            ScalarCowEnum::Bool(x) => ScalarCow::new(x),
            ScalarCowEnum::Date(x) => ScalarCow::new(x),
            ScalarCowEnum::Str(ref x) => ScalarCow::new(x.as_ref()),
        }
    }
/// Create a reference to the value.
Create a reference to the value.
Create a reference to the value .
pub fn as_ref<'r: 's>(&'r self) -> ScalarCow<'r> {
        match self.0 {
            ScalarCowEnum::Integer(x) => ScalarCow::new(x),
            ScalarCowEnum::Float(x) => ScalarCow::new(x),
            ScalarCowEnum::Bool(x) => ScalarCow::new(x),
            ScalarCowEnum::Date(x) => ScalarCow::new(x),
            ScalarCowEnum::Str(ref x) => ScalarCow::new(x.as_ref()),
        }
    }
pub fn as_ref < ' r : ' s > ( & ' r self ) -> ScalarCow < ' r > { match self . 0 { ScalarCowEnum :: Integer ( x ) => ScalarCow :: new ( x ) , ScalarCowEnum :: Float ( x ) => ScalarCow :: new ( x ) , ScalarCowEnum :: Bool ( x ) => ScalarCow :: new ( x ) , ScalarCowEnum :: Date ( x ) => ScalarCow :: new ( x ) , ScalarCowEnum :: Str ( ref x ) => ScalarCow :: new ( x . as_ref ( ) ) , } }
Create a reference to the value.
Create a reference to the value .
&'r self
&'r self