Skip to content

1.0.22

Compare
Choose a tag to compare
@dtolnay dtolnay released this 28 Dec 20:20
· 1718 commits to master since this release
1.0.22
7f056cd
  • Add accessors for the size and alignment of an opaque Rust type (#597)

      namespace rust {
    +   template <typename T> size_t size_of();
    +   template <typename T> size_t align_of();
      }
  • Expand API of rust::Slice<T> in C++ (#598)

      template <typename T>
      class Slice {
      public:
        ...
    +   bool empty() const noexcept;
    +   T &operator[](size_t n) const noexcept;
    +   T &at(size_t n) const;
    +   T &front() const noexcept;
    +   T &back() const noexcept;
      };
  • Expand rust::Slice<T>::iterator from a forward-only iterator to random access iterator (#599)

  • Support using rust::Slice<T> with T an opaque Rust type, previously limited to shared types only (#600, #601, #602, #603)