Docs.rs
bgpsim-macros-0.20.0
bgpsim-macros 0.20.0
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
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Crate bgpsim_macros
bgpsim_
macros
0.20.0
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.