Subtracts another integer from this one and returns the value if no overflow occurred.
impl W16 {
fn checked_sub(self, other: u16) -> Option<W16>
}| Name | Description |
|---|---|
| other | The integer that will be subtracted from this one. |
Returns the difference if no overflow occurred, None otherwise.