use super::funejson::Value; use super::net_ipv4_parse_ipv4::ipv4_value; /// True exactly when parse_ipv4 would accept the text; never panics. pub fn is_ipv4(text: &str) -> bool { ipv4_value(text).is_some() } pub fn fune_vector(args: &[Value]) -> Value { Value::Bool(is_ipv4(args[0].as_str())) }