tree: f79fabbf2baec99baa8bab01cc36a94f9a1a60aa [path history] [tgz]
  1. test/
  2. BUILD
  3. README.md
  4. slice_ptr.rs
  5. string_view.rs
support/cc_std/README.md

Rust bindings for the C++ standard library

This directory contains the cc_std Rust crate - the crate generated by rs_bindings_from_cc and providing bindings for the C++ standard library. For example this crate provides:

  • The cc_std::std::string_view type alias (corresponding to std::string_view in C++)
  • The cc_std::tm struct (corresponding to tm in C++)

In addition to automatically generated bindings, the crate also provides manually authored trait implementations that supplement the automated bindings. For example:

  • impl From<&'static str> for string_view