| /wasmtime-44.0.1/crates/test-programs/src/bin/ |
| H A D | p2_cli_http_headers.rs | 6 let fields = wasip2::http::types::Fields::new(); in main() localVariable 14 let fields = wasip2::http::types::Fields::new(); in main() localVariable 22 let fields = wasip2::http::types::Fields::new(); in main() localVariable 24 if fields.append("a", b"b").is_err() { in main() 30 let fields = wasip2::http::types::Fields::new(); in main() localVariable 32 if fields.append("a", b"").is_err() { in main() 38 let fields = wasip3::http::types::Fields::new(); in main() localVariable 47 let fields = wasip3::http::types::Fields::new(); in main() localVariable 56 let fields = wasip3::http::types::Fields::new(); in main() localVariable 58 if fields.append("a", b"b").is_err() { in main() [all …]
|
| H A D | p2_cli_serve_echo_env.rs | 17 let fields = Fields::new(); in handle() localVariable 19 fields.set(&header_key, &[val.into_bytes()]).unwrap(); in handle() 21 let resp = OutgoingResponse::new(fields); in handle()
|
| H A D | p2_http_outbound_request_missing_path_and_query.rs | 5 let fields = Fields::new(); in main() localVariable 6 let req = OutgoingRequest::new(fields); in main()
|
| H A D | p2_cli_serve_hello_world.rs | 12 let fields = Fields::new(); in handle() localVariable 13 let resp = OutgoingResponse::new(fields); in handle()
|
| H A D | p2_cli_serve_config.rs | 13 let fields = Fields::new(); in handle() localVariable 14 let resp = OutgoingResponse::new(fields); in handle()
|
| H A D | p2_cli_serve_keyvalue.rs | 13 let fields = Fields::new(); in handle() localVariable 14 let resp = OutgoingResponse::new(fields); in handle()
|
| H A D | p3_http_outbound_request_missing_path_and_query.rs | 11 let fields = Fields::new(); in run() localVariable 13 let (req, _) = Request::new(fields, None, rx, None); in run()
|
| /wasmtime-44.0.1/cranelift/codegen/meta/src/cdsl/ |
| H A D | operands.rs | 46 match &self.kind.fields { in doc() 53 matches!(self.kind.fields, OperandKindFields::TypeVar(_)) in is_value() 57 match &self.kind.fields { in type_var() 64 matches!(self.kind.fields, OperandKindFields::VariableArgs) in is_varargs() 70 self.kind.fields, in is_immediate_or_entityref() 80 self.kind.fields, in is_immediate() 116 pub fields: OperandKindFields, field 125 fields: OperandKindFields, in new() 131 fields, in new() 139 match &self.fields { in doc() [all …]
|
| /wasmtime-44.0.1/crates/wasi-http/src/p3/host/ |
| H A D | types.rs | 27 .get(&fields) in get_fields() 47 .delete(fields) in delete_fields() 54 Ok(fields) in delete_fields() 206 Ok(fields) in from_list() 214 let fields = get_fields(self.table, &fields)?; in get() localVariable 215 Ok(fields in get() 223 let fields = get_fields(self.table, &fields)?; in has() localVariable 289 let fields = get_fields(self.table, &fields)?; in copy_all() localVariable 290 let fields = fields in copy_all() localVariable 294 Ok(fields) in copy_all() [all …]
|
| /wasmtime-44.0.1/crates/wasi-http/src/p2/ |
| H A D | types_impl.rs | 64 .delete(fields) in drop() 70 let fields = self.table.get(&fields)?; in get() localVariable 81 let res = fields in get() 90 let fields = self.table.get(&fields)?; in has() localVariable 115 let fields = self.table.get_mut(&fields)?; in set() localVariable 127 let fields = self.table.get_mut(&fields)?; in delete() localVariable 146 let fields = self.table.get_mut(&fields)?; in append() localVariable 154 .get(&fields)? in entries() 161 let mut fields = self.table.get(&fields)?.clone(); in clone() localVariable 502 Ok(Some(fields)) => fields, in get() [all …]
|
| /wasmtime-44.0.1/crates/environ/src/ |
| H A D | gc.rs | 136 fields: &[crate::WasmFieldType], in common_struct_or_exn_layout() 154 let fields = fields in common_struct_or_exn_layout() localVariable 170 (size, align, fields) in common_struct_or_exn_layout() 184 let (size, align, fields) = common_struct_or_exn_layout(&ty.fields, header_size, header_align); in common_struct_layout() 189 fields, in common_struct_layout() 207 let (size, align, fields) = common_struct_or_exn_layout(&ty.fields, header_size, header_align); in common_exn_layout() 212 fields, in common_exn_layout() 394 pub fields: TryVec<GcStructLayoutField>, field 405 fields: self.fields.try_clone()?, in try_clone()
|
| H A D | vmoffsets.rs | 627 fn from(fields: VMOffsetsFields<P>) -> VMOffsets<P> { in from() 629 ptr: fields.ptr, in from() 634 num_imported_tags: fields.num_imported_tags, in from() 635 num_defined_tables: fields.num_defined_tables, in from() 637 num_owned_memories: fields.num_owned_memories, in from() 639 num_defined_tags: fields.num_defined_tags, in from() 640 num_escaped_funcs: fields.num_escaped_funcs, in from() 671 macro_rules! fields { in from() macro 675 fields!($($rest)*); in from() 679 fields!($($rest)*); in from() [all …]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/enabled/ |
| H A D | exnref.rs | 209 fields: &[Val], in new() 220 fields, in new() 254 fields: &[Val], in new_async() 262 fields, in new_async() 273 fields: &[Val], in _new_async() 290 fields: &[Val], in type_check_tag_and_fields() 307 for (ty, val) in allocator.ty.fields().zip(fields) { in type_check_tag_and_fields() 327 fields: &[Val], in new_unchecked() 351 for (index, (ty, val)) in allocator.ty.fields().zip(fields).enumerate() { in new_unchecked() 489 pub fn fields<'a, T: 'static>( in fields() method [all …]
|
| H A D | structref.rs | 236 fields: &[Val], in new() 246 fields, in new() 277 fields: &[Val], in new_async() 287 fields: &[Val], in _new_async() 302 fields: &[Val], in type_check_fields() 305 let actual_len = fields.len(); in type_check_fields() 310 for (ty, val) in allocator.ty.fields().zip(fields) { in type_check_fields() 329 fields: &[Val], in new_unchecked() 351 for (index, (ty, val)) in allocator.ty.fields().zip(fields).enumerate() { in new_unchecked() 441 pub fn fields<'a, T: 'static>( in fields() method [all …]
|
| /wasmtime-44.0.1/crates/component-macro/src/ |
| H A D | component.rs | 115 fields: &[&syn::Field], in expand_record() 187 match &body.fields { in expand_record() 242 fields, in expand_variant() 249 syn::Fields::Unnamed(fields) if fields.unnamed.len() == 1 => { in expand_variant() 350 fields: &[&syn::Field], in expand_record_for_component_type() 926 fields, in expand_record() 928 fields in expand_record() 1329 let fields = { in expand_flags() localVariable 1344 let fields = fields.iter().collect::<Vec<_>>(); in expand_flags() localVariable 1349 &fields, in expand_flags() [all …]
|
| /wasmtime-44.0.1/crates/wasi-http/src/p3/wit/deps/ |
| H A D | http.wit | 109 /// `fields`. 112 /// to set a header in a `fields`. 166 /// A `fields` may be mutable or immutable. A `fields` created using the 174 /// original casing used to construct or mutate the `fields` resource. The `fields` 182 resource fields { 185 /// The resulting `fields` is mutable. 189 /// The resulting `fields` is mutable. 252 /// `fields` is mutable. 253 clone: func() -> fields; 258 type headers = fields; [all …]
|
| /wasmtime-44.0.1/tests/all/component_model/ |
| H A D | dynamic.rs | 1094 let mut fields = c_ty.unwrap_record().fields(); in introspection() localVariable 1096 let Field { name, ty } = fields.next().unwrap(); in introspection() 1099 let Field { name, ty } = fields.next().unwrap(); in introspection() 1120 let mut fields = m_ty.unwrap_record().fields(); in introspection() localVariable 1121 let Field { name, ty } = fields.next().unwrap(); in introspection() 1124 let Field { name, ty } = fields.next().unwrap(); in introspection() 1153 let mut fields = foo_ty.unwrap_record().fields(); in introspection() localVariable 1154 assert_eq!(fields.len(), 17); in introspection() 1155 let Field { name, ty } = fields.next().unwrap(); in introspection() 1158 let Field { name, ty } = fields.next().unwrap(); in introspection() [all …]
|
| /wasmtime-44.0.1/crates/c-api/include/wasmtime/ |
| H A D | exn.hh | 58 const std::vector<Val> &fields) { in create() argument 62 reinterpret_cast<const wasmtime_val_t *>(fields.data()), fields.size(), in create()
|
| H A D | gc.hh | 155 const std::vector<FieldType> &fields) { in create() argument 159 reinterpret_cast<const wasmtime_field_type_t *>(fields.data()), in create() 160 fields.size()); in create() 241 const std::vector<Val> &fields) { in create() argument 243 c_fields.reserve(fields.size()); in create() 244 for (auto &f : fields) { in create()
|
| /wasmtime-44.0.1/cranelift/isle/isle/src/ |
| H A D | trie_again.rs | 104 fields: Box<[BindingId]>, 157 fields: TupleIndex, 271 Binding::MakeVariant { fields, .. } => &fields[..], in sources() 290 variant, fields, .. in bindings_for() 291 } => (0..fields.0) in bindings_for() 567 let fields = TupleIndex(arg_tys.len().try_into().unwrap()); in add_match_variant() localVariable 571 fields, in add_match_variant() 640 fields: inputs.into_iter().map(|(expr, _)| expr).collect(), in add_create_variant()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/ |
| H A D | const_expr.rs | 68 let fields = struct_ty.fields(); in struct_fields_len() localVariable 69 fields.len() in struct_fields_len() 78 fields: &[Val], in struct_new() 83 StructRef::_new_async(store, limiter, &allocator, &fields, self.asyncness).await?; in struct_new() 116 let fields = struct_ty in struct_new_default() localVariable 117 .fields in struct_new_default() 137 self.struct_new(store, limiter, shared_ty, &fields).await in struct_new_default()
|
| /wasmtime-44.0.1/cranelift/srcgen/src/ |
| H A D | lib.rs | 200 for (&(ref fields, ref body), ref names) in m.arms.iter() { in add_match() 205 if !fields.is_empty() { in add_match() 206 format!("{} {{ {} }}", name, fields.join(", ")) in add_match() 348 pub fn arm<T: Into<String>, S: Into<String>>(&mut self, name: T, fields: Vec<S>, body: T) { in arm() 356 let fields = fields.into_iter().map(|x| x.into()).collect(); in arm() localVariable 359 .entry((fields, body)) in arm()
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | exn.rs | 18 fields: *const wasmtime_val_t, in wasmtime_exn_new() 28 let raw_fields = crate::slice_from_raw_parts(fields, nfields); in wasmtime_exn_new() 61 ty.fields().len() in wasmtime_exn_field_count()
|
| /wasmtime-44.0.1/crates/c-api/tests/ |
| H A D | exception.cc | 25 std::vector<Val> fields = {Val(int32_t(42)), Val(int64_t(100))}; in TEST() local 26 auto exn = Exn::create(cx, tag, fields).unwrap(); in TEST() 99 std::vector<Val> fields = {Val(int32_t(99))}; in TEST() local 100 auto exn = Exn::create(cx2, tag, fields).unwrap(); in TEST()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | types.rs | 1865 for field in self.fields() { in fmt() 1914 let fields = fields.into_iter(); in with_finality_and_supertype() localVariable 1928 let fields: Box<[WasmFieldType]> = fields in with_finality_and_supertype() localVariable 1962 WasmStructType { fields }, in with_finality_and_supertype() 1992 .fields in field() 2002 .fields in fields() 2804 for field in self.fields() { in fmt() 2820 let fields: TryVec<_> = fields.into_iter().try_collect()?; in new() localVariable 2853 for ty in fields.into_iter() { in _new() 2895 .fields in field() [all …]
|