Lines Matching refs:String
115 name: wasm_name_t::from_name(String::new()), in default()
121 impl From<&wasmtime_component_valrecord_entry_t> for (String, Val) {
124 String::from_utf8(value.name.clone().take()).unwrap(), in from()
130 impl From<&(String, Val)> for wasmtime_component_valrecord_entry_t {
131 fn from((name, val): &(String, Val)) -> Self { in from() argument
139 impl From<&wasmtime_component_valrecord_t> for Vec<(String, Val)> {
145 impl From<&[(String, Val)]> for wasmtime_component_valrecord_t {
146 fn from(value: &[(String, Val)]) -> Self { in from() argument
171 impl From<&wasmtime_component_valflags_t> for Vec<String> {
177 .map(|mut x| String::from_utf8(x.take())) in from()
183 impl From<&[String]> for wasmtime_component_valflags_t {
184 fn from(value: &[String]) -> Self { in from()
200 impl From<(&String, &Option<Box<Val>>)> for wasmtime_component_valvariant_t {
201 fn from((discriminant, value): (&String, &Option<Box<Val>>)) -> Self { in from() argument
211 impl From<&wasmtime_component_valvariant_t> for (String, Option<Box<Val>>) {
214 String::from_utf8(value.discriminant.clone().take()).unwrap(), in from()
266 String(wasm_name_t), enumerator
300 wasmtime_component_val_t::String(x) => { in from()
301 Val::String(String::from_utf8(x.clone().take()).unwrap()) in from()
311 Val::Enum(String::from_utf8(x.clone().take()).unwrap()) in from()
339 Val::String(x) => wasmtime_component_val_t::String(wasm_name_t::from_name(x.clone())), in from()