Known RFCs for IP addresses.
Installation
[]
= "0.2"
Const Classifiers
iprfc exposes const functions for common RFC address classes, so downstream
crates can reuse the same no-std range checks in constructors and predicates.
use ;
let private = "10.0.0.1".parse.unwrap;
assert!;
let documentation = "3fff::1".parse.unwrap;
assert!;
Pedigree
- Reference to: HashiCorp's go-sockaddr
rfc.go
License
iprfc is under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE, LICENSE-MIT for details.
Copyright (c) 2021 Al Liu.