Function ipv4_heatmap::utils::bbox_from_cidr
source · [−]pub fn bbox_from_cidr<S>(cidr: S) -> BoundingBox where
S: Into<String>,
Expand description
Given a CIDR in IP/##
form, return the bounding box.
Examples
let result = bbox_from_cidr("218.0.0.0/7");
// BoundingBox { xmin: 2048, xmax: 2559, ymin: 1024, ymax: 1279 }