rust/library/alloc
Tyler Mandry c307e90daa
Rollup merge of #76139 - CDirkx:cow-is-borrowed, r=ecstatic-morse
Make `cow_is_borrowed` methods const

Constify the following methods of `alloc::borrow::Cow`:
 - `is_borrowed`
 - `is_owned`

Analogous to the const methods `is_some` and `is_none` for Option, and `is_ok` and `is_err` for Result.

These methods are still unstable under `cow_is_borrowed`.
Possible because of #49146 (Allow if and match in constants).

Tracking issue: #65143
2020-08-31 19:18:21 -07:00
..
benches Liballoc bench rename push_all extend_from_slice 2020-08-20 19:04:52 +08:00
src Rollup merge of #76139 - CDirkx:cow-is-borrowed, r=ecstatic-morse 2020-08-31 19:18:21 -07:00
tests Move btree unit test to their native, privileged location 2020-08-14 17:54:09 +02:00
Cargo.toml mv std libs to library/ 2020-07-27 19:51:13 -05:00