pub fn insert_expression(
s: &str,
set: &mut IpSet,
resolver: Option<ResolverFn<'_>>,
zones: Option<ZoneResolverFn<'_>>,
) -> Result<(), IpParseError>Expand description
Identifies the format of a single address expression and inserts it into an existing set.
The grammar without to_set’s list handling, for a caller that has already
tokenized its input, such as an importer reading a file of targets.
Nothing is inserted when the expression is refused.
IpParseError::Malformed means the expression matches no address, range or CIDR
form, which is also what a hostname looks like; a caller accepting hostnames tries
resolving one. Every other error describes a wrong address.