Adds another integer to this one without overflow, trimming the value to the range that can be represented in this type.
impl W32 {
fn saturating_add(self, other: u32) -> W32
}| Name | Description |
|---|---|
| other | |
let x: u8 = 200; let y: u8 = 100; assert!(x.saturating_add(y) == 255);