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