1.0.5
-
Add mutable iterators for
rust::Vec<T>
in C++ (#509)class Vec<T> { + class iterator; + iterator begin() noexcept; + iterator end() noexcept; class const_iterator; const_iterator begin() const noexcept; const_iterator end() const noexcept; + const_iterator cbegin() const noexcept; + const_iterator cend() const noexcept; };
-
Support slices with arbitrary element type (previously restricted to
u8
) (#514) -
Add
c_char
type which refers tostd::os::raw::c_char
in Rust andchar
in C++ (#515) -
Add iterator for
rust::Slice<T>
andrust::Slice<const T>
(#516)class Slice<T> { + class iterator; + iterator begin() const noexcept; + iterator end() const noexcept; };
-
Add iterators for
rust::String
andrust::Str
(#517)class String { + using iterator = char *; + iterator begin() noexcept; + iterator end() noexcept; + using const_iterator = const char *; + const_iterator begin() const noexcept; + const_iterator end() const noexcept; + const_iterator cbegin() const noexcept; + const_iterator cend() const noexcept; }; class Str { + using iterator = const char *; + using const_iterator = const char *; + const_iterator begin() const noexcept; + const_iterator end() const noexcept; + const_iterator cbegin() const noexcept; + const_iterator cend() const noexcept; };