Docs.rs
bgpsim-macros-0.18.1
bgpsim-macros 0.18.1
Permalink
Docs.rs crate page
Links
Homepage
Repository
crates.io
Source
Owners
tiborschneider
Dependencies
ipnet ^2.7.0
normal
proc-macro2 ^1.0.49
normal
quote ^1.0.23
normal
syn ^2.0
normal
Versions
75%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
bgpsim_
macros
0.18.1
All Items
Crate Items
Macros
Derive Macros
Crate
bgpsim_macros
Copy item path
Source
Macros
§
net
Create a
Network
using a domain specific language. This proc-macro will check at compile time that all invariants are satisfied.
prefix
Create a
Prefix
from an
ipnet::Ipv4Net
string. If you provide an
as
, you can specify to which type the resulting
Ipv4Net
will be casted. If you omit the type parameter after
as
, then the macro will simply invoke
.into()
on the generated
IpvtNet
.
Derive Macros
§
Network
Formatter
Automatically implement the NetworkFormatter for the given type. The strings are generated similar to the derived
std::fmt::Debug
implementation.