Method lrs::num::W16::saturating_sub

Subtracts another integer to this one without overflow, trimming the value to the range that can be represented in this type.

Syntax

impl W16 {
    fn saturating_sub(self, other: u16) -> W16
}

Arguments

NameDescription
other