MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / overlaps

Method overlaps

vm-device/src/bus.rs:89–91  ·  view source on GitHub ↗

Returns true if there is overlap with the given range.

(&self, base: u64, len: u64)

Source from the content-addressed store, hash-verified

87impl BusRange {
88 /// Returns true if there is overlap with the given range.
89 pub fn overlaps(&self, base: u64, len: u64) -> bool {
90 self.base < (base + len) && base < self.base + self.len
91 }
92}
93
94impl Eq for BusRange {}

Callers 1

insertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected