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