MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / is_subset_of

Method is_subset_of

lrwn/src/devaddr.rs:28–30  ·  view source on GitHub ↗
(&self, other: &DevAddrPrefix)

Source from the content-addressed store, hash-verified

26 }
27
28 pub fn is_subset_of(&self, other: &DevAddrPrefix) -> bool {
29 self.range_min() >= other.range_min() && self.range_max() <= other.range_max()
30 }
31
32 fn prefix(&self) -> [u8; 4] {
33 self.0

Callers 2

validateMethod · 0.80

Calls 2

range_minMethod · 0.80
range_maxMethod · 0.80

Tested by

no test coverage detected