#ifndef BASE_STRINGS_STRING_VIEW_RUST_H_
#define BASE_STRINGS_STRING_VIEW_RUST_H_
#include <stdint.h>
#include <string_view>
#include "base/rust_buildflags.h"
#include "third_party/rust/cxx/v1/cxx.h"
#if !BUILDFLAG(BUILD_RUST_BASE_CONVERSIONS)
#error "string_view_rust.h included without BUILD_RUST_BASE_CONVERSIONS"
#endif
namespace base {
inline rust::Str StringViewToRustStrUTF8(std::string_view string_piece) { … }
inline rust::Slice<const uint8_t> StringViewToRustSlice(
std::string_view string_piece) { … }
inline std::string_view RustStrToStringView(rust::Str str) { … }
}
#endif