pub fn to_string(&self) -> (Option<&str>, Option<String>) {
        match self {
            Value::String(s, _) => (Some(s), None),
            Value::Int(n) => {
                let s = format!("{}", n);
                (None, Some(s))
            }
            Value::BigInt(n) => {
                let s = format!("{}", n);
                (None, Some(s))
            }
            Value::Float(f) => {
                let s = format!("{}", f);
                (None, Some(s))
            }
            Value::Null => (Some(&""), None),
            _ => (None, None),
        }
    }
/// Convert the current value into a string.  If the current value
/// is a string, this will return the &str as the first element of
/// the pair.  Otherwise, it will return a new String as the
/// second element of the pair.  If the value is not representable
/// as a string, both elements of the pair will be None.
Convert the current value into a string.  If the current value
is a string, this will return the &str as the first element of
the pair.  Otherwise, it will return a new String as the
second element of the pair.  If the value is not representable
as a string, both elements of the pair will be None.
Convert the current value into a string . If the current value is a string this will return the &str as the first element of the pair . Otherwise it will return a new String as the second element of the pair . If the value is not representable as a string both elements of the pair will be None .
pub fn to_string(&self) -> (Option<&str>, Option<String>) {
        match self {
            Value::String(s, _) => (Some(s), None),
            Value::Int(n) => {
                let s = format!("{}", n);
                (None, Some(s))
            }
            Value::BigInt(n) => {
                let s = format!("{}", n);
                (None, Some(s))
            }
            Value::Float(f) => {
                let s = format!("{}", f);
                (None, Some(s))
            }
            Value::Null => (Some(&""), None),
            _ => (None, None),
        }
    }
pub fn to_string ( & self ) -> ( Option < & str > , Option < String > ) { match self { Value :: String ( s , _ ) => ( Some ( s ) , None ) , Value :: Int ( n ) => { let s = format ! ( " " n ) ; ( None , Some ( s ) ) } Value :: BigInt ( n ) => { let s = format ! ( " " n ) ; ( None , Some ( s ) ) } Value :: Float ( f ) => { let s = format ! ( " " f ) ; ( None , Some ( s ) ) } Value :: Null => ( Some ( & " " ) , None ) , _ => ( None , None ) , } }
Convert the current value into a string.
Convert the current value into a string .
&self