Albin Hedman
8b3725973a
Added reference to tracking issue
2020-12-17 00:27:21 +01:00
Albin Hedman
baa5e47106
Update doc comment
...
Co-authored-by: Mara Bos <m-ou.se@m-ou.se >
2020-12-16 21:12:10 +01:00
Albin Hedman
be2c8f2d43
Update zip for better codegen, see discussion
2020-12-16 18:35:56 +01:00
Albin Hedman
3b8617b9b6
Added [T; N]::zip()
2020-11-26 23:22:36 +01:00
Mara Bos
c0a9bf9336
Rollup merge of #78769 - est31:remove_lifetimes, r=KodrAus
...
Remove unneeded lifetimes in array/mod.rs
2020-11-16 17:26:29 +01:00
pubfnbar
c03dfa6671
Implement Index[Mut] for arrays
...
Adds implementations of `Index` and `IndexMut` for arrays that simply forward to the slice indexing implementation.
2020-11-16 09:05:15 -05:00
est31
5058cad41e
Remove unneeded lifetimes in array/mod.rs
2020-11-05 11:49:27 +01:00
Mara Bos
43e1b58bcc
Rollup merge of #78716 - est31:array_traits, r=Dylan-DPC
...
Array trait impl comment/doc fixes
Two small doc/comment fixes regarding trait implementations on arrays.
2020-11-05 10:29:46 +01:00
est31
93fa023111
Fix outdated comment next to array_impl_default
...
The comment has become outdated as the array_impl macro
has been removed.
2020-11-04 12:21:22 +01:00
Rustin-Liu
42844ed2cf
Add lexicographical comparison doc
...
Add links
Fix typo
Use `sequence`
Fix typo
Fix broken link
Fix broken link
Fix broken link
Fix broken links
Fix broken links
2020-10-26 22:39:43 +08:00
Bastian Kauschke
ed97b42105
add tracking issue
2020-09-23 13:48:21 +02:00
Bastian Kauschke
179f63dafc
add array from_ref
2020-09-22 21:35:43 +02:00
Ralf Jung
cff5f56886
rename MaybeUninit slice methods
...
first_ptr -> slice_as_ptr
first_ptr_mut -> slice_as_mut_ptr
slice_get_ref -> slice_assume_init_ref
slice_get_mut -> slice_assume_init_mut
2020-09-05 17:24:22 +02:00
Lukas Kalbertodt
104a02301c
Add [T; N]::as_[mut_]slice
...
These methods are like the ones on `std::array::FixedSizeArray`
and in the crate `arraytools`.
2020-08-30 21:08:17 +02:00
Pietro Albini
3e16d4af7f
apply bootstrap cfgs
2020-08-26 10:17:31 +02:00
Camelid
04e8237c6d
Switch to intra-doc links in core::array
2020-08-23 14:42:21 -07:00
kadmin
af32db21c8
Add drop check test & MaybeUninit::first_ptr_mut
...
Also in drop check test add hacky workaround for platforms that don't support
panic=unwind
2020-08-13 03:51:08 +00:00
kadmin
412417d807
Rm hiding feature gate & add 1 more example
...
Update order docs for `map`
2020-08-13 03:51:05 +00:00
kadmin
54b821ebc0
Add tracking issue #75243
...
Add note & example about iter order
Add doc changes
Update doc comments
2020-08-13 03:51:01 +00:00
kadmin
56a651ca15
Add recommend changes to array
...
Switch from indexing to zip, and also use `write` on `MaybeUninit`.
Add array_map feature to core/src/lib
Attempt to fix issue of no such feature
Update w/ pickfire's review
This changes a couple of names around, adds another small test of variable size,
and hides the rustdoc #![feature(..)].
Fmt doctest
Add suggestions from lcnr
2020-08-13 03:50:59 +00:00
kadmin
f6411e4c66
Add Array Impl Lang Item in various places
...
Add basic test
And also run fmt which is where the other changes are from
Fix mut issues
These only appear when running tests, so resolved by adding mut
Swap order of forget
Add pub and rm guard impl
Add explicit type to guard
Add safety note
Change guard type from T to S
It should never have been T, as it guards over [MaybeUninit<S>; N]
Also add feature to test
2020-08-13 03:50:57 +00:00
kadmin
d8718183b2
Create lang item array and add map fn
...
This creates the language item for arrays, and adds the map fn which is like map in options or
iterators. It currently allocates an extra array, unfortunately.
Added fixme for transmuting
Fix typo
Add drop guard
2020-08-13 03:50:54 +00:00
mark
2c31b45ae8
mv std libs to library/
2020-07-27 19:51:13 -05:00