Expose snake case type aliases

This commit is contained in:
David Tolnay 2020-03-01 14:08:57 -08:00
parent 9ad1fbc478
commit 3b0c988059
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -128,5 +128,10 @@ private:
std::ostream &operator<<(std::ostream &os, const String &s);
std::ostream &operator<<(std::ostream &os, const Str &s);
// Snake case aliases for use in code that uses this style for type names.
using string = String;
using str = Str;
template <class T> using box = Box<T>;
} // namespace cxxbridge01
} // namespace rust