You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initial work to make String usable with feature(allocator_api).
More `allocator_api`-aware `String` implementations (Most allocator-irrelevant associated functions, Drain, and FromUtf8Error).
More `allocator_api`-aware `String` implementations, including added `new_in` etc inherent impls.
tidy, new_in etc, raw_parts_in etc, allocator(&self), FromUtf8Error impls, Extend, Pattern, PartialEq &str etc with String<A>, Display, Debug, Hash, Add(Assign), ToString, AsRef/AsMut, conversions Box<str, A> -> String<A>, &String -> Cow<str>, String<A> -> Vec<u8, A>; fmt::Write.
Fix gdb/lldb integration for String<A>.
Add some simple trait impls I missed.
Borrow(Mut)<str> for String, From<String<A>> for Rc<str>/Arc<str>, Clone for Box<str, A>.
Remove FIXMEs for String<A> APIs that don't already exist for Vec<T,A>.
Rewrite `Clone for Box<str, A>` to avoid extra capacity/length checks converting from Vec.
Also implement `clone_from` to re-use the allocation when the lengths are the same.
Remove `From<String<A>> for Rc<str>`/`Arc` impls to allow for future alloc-ification of `Rc`/`Arc`
Note: find out how to make "the full type name has been written to" errors be deterministic (./x.py test alone didn't do it).
AsRef<OsStr> and AsRef<Path> for String<A: Allocator>
0 commit comments