Module family
Expand description
§Match family module
use rapimt_core::fm_ipv4_from;
use rapimt_core::prelude::{
ipv4_to_match, Match, FieldMatch
};
let fm = fm_ipv4_from!("dip", "192.168.1.0/24");
// fm.cond is parsed into a Match::TernaryMatch
assert!(matches!(fm.cond, Match::TernaryMatch { .. }));Structs§
- Field
Declaration - Describes a field in a match family.