pub fn to_regex(&self) -> Option<&Regex> {
        match self {
            Value::String(_, Some(ref regex)) => Some(regex),
            _ => {
                eprintln!("gen_regex must be called before to_regex!");
                std::process::abort();
            }
        }
    }
/// For a string value, return the corresponding regex.  For this
/// function to work, gen_regex must have been called on the
/// string value beforehand.
For a string value, return the corresponding regex.  For this
function to work, gen_regex must have been called on the
string value beforehand.
For a string value return the corresponding regex . For this function to work gen_regex must have been called on the string value beforehand .
pub fn to_regex(&self) -> Option<&Regex> {
        match self {
            Value::String(_, Some(ref regex)) => Some(regex),
            _ => {
                eprintln!("gen_regex must be called before to_regex!");
                std::process::abort();
            }
        }
    }
pub fn to_regex ( & self ) -> Option < & Regex > { match self { Value :: String ( _ , Some ( ref regex ) ) => Some ( regex ) , _ => { eprintln ! ( " " ) ; std :: process :: abort ( ) ; } } }
For a string value, return the corresponding regex.
For a string value return the corresponding regex .
&self