1 2 3 4 5 6 7 8 9 10 11 12 13
// Copyright (c) 2025-2026 Umberto Gotti // SPDX-License-Identifier: MIT pub struct PortRange { pub base: u16, pub count: u16, } impl PortRange { pub fn end(&self) -> u16 { self.base.saturating_add(self.count.saturating_sub(1)) } }