borrow.rs 160 B

123456789
  1. use std::borrow::Cow;
  2. use tsify::Tsify;
  3. #[derive(Tsify)]
  4. #[tsify(into_wasm_abi, from_wasm_abi)]
  5. struct Borrow<'a> {
  6. raw: &'a str,
  7. cow: Cow<'a, str>,
  8. }