The function signature looks like this:
impl i64 {
pub const fn from_unsigned_sign(unsigned: u64, sign: bool) -> i64 {
// ...
}
}
Maybe variants like checked
, overflowing
, saturating
, wrapping
are needed.
The function signature looks like this:
impl i64 {
pub const fn from_unsigned_sign(unsigned: u64, sign: bool) -> i64 {
// ...
}
}
Maybe variants like checked
, overflowing
, saturating
, wrapping
are needed.
What's the expected (default) behavior on overflow?