rust/library/core/src
Yuki Okushi cc0ac7eece
Rollup merge of #74759 - carbotaniuman:uabs, r=shepmaster
add `unsigned_abs` to signed integers

Mentioned on rust-lang/rfcs#2914

This PR simply adds an `unsigned_abs` to signed integers function which returns the correct absolute value as a unsigned integer.
2020-08-04 09:26:58 +09:00
..
alloc mv std libs to library/ 2020-07-27 19:51:13 -05:00
array mv std libs to library/ 2020-07-27 19:51:13 -05:00
char mv std libs to library/ 2020-07-27 19:51:13 -05:00
convert mv std libs to library/ 2020-07-27 19:51:13 -05:00
fmt mv std libs to library/ 2020-07-27 19:51:13 -05:00
future mv std libs to library/ 2020-07-27 19:51:13 -05:00
hash mv std libs to library/ 2020-07-27 19:51:13 -05:00
iter mv std libs to library/ 2020-07-27 19:51:13 -05:00
macros mv std libs to library/ 2020-07-27 19:51:13 -05:00
mem Rollup merge of #74602 - poliorcetics:maybe-uninit-zeroed-doc-clarification, r=jyn514 2020-08-01 17:42:11 -07:00
num add unsigned_abs to signed integers 2020-07-29 10:38:58 -05:00
ops mv std libs to library/ 2020-07-27 19:51:13 -05:00
prelude mv std libs to library/ 2020-07-27 19:51:13 -05:00
ptr mv std libs to library/ 2020-07-27 19:51:13 -05:00
slice add tracking issue 2020-08-01 07:49:24 +02:00
str Add str::[r]split_once 2020-07-28 09:58:20 +02:00
sync fence docs: fix example Mutex 2020-07-29 15:45:42 +02:00
task Add #[inline] to RawWaker::new 2020-07-28 06:14:52 +02:00
unicode mv std libs to library/ 2020-07-27 19:51:13 -05:00
any.rs bump const type id stabilization to 1.46.0 2020-07-28 13:30:29 +10:00
ascii.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
bool.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
borrow.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
cell.rs add track_caller to RefCell::{borrow, borrow_mut} 2020-07-28 15:45:25 -04:00
clone.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
cmp.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
default.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
ffi.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
hint.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
internal_macros.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
intrinsics.rs Make {align,size}_of_val const 2020-07-29 16:50:15 -07:00
lazy.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
lib.rs Auto merge of #74956 - ecstatic-morse:const-option-unwrap, r=oli-obk 2020-07-31 08:26:33 +00:00
marker.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
option.rs Make Option::unwrap unstably const 2020-07-30 12:30:58 -07:00
panic.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
panicking.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
pin.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
raw.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
result.rs Stabilize as_deref and as_deref on Result 2020-07-31 02:42:24 +00:00
time.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
tuple.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
unit.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00