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