Lines Matching refs:map
61 Box::new(record.fields().map(|f| (f.name.into(), f.ty.clone()))) in record_fields()
75 Box::new(variant.cases().map(|case| (case.name.into(), case.ty))) in variant_cases()
82 Box::new(enum_.names().map(Into::into)) in enum_cases()
86 maybe_unwrap_type!(self, Self::Option).map(|o| o.ty()) in option_some_type()
98 Box::new(flags.names().map(Into::into)) in flags_names()
191 .map(|(name, val)| (name.to_string(), val)) in make_record()
212 let val = Self::Variant(case.to_string(), val.map(Box::new)); in make_variant()
224 let val = Self::Option(val.map(Box::new)); in make_option()
234 Ok(val) => Self::Result(Ok(val.map(Box::new))), in make_result()
235 Err(val) => Self::Result(Err(val.map(Box::new))), in make_result()
245 let val = Self::Flags(names.into_iter().map(|n| n.to_string()).collect()); in make_flags()
263 Box::new(list.iter().map(cow)) in unwrap_list()
267 Box::new(record.iter().map(|(name, val)| (name.into(), cow(val)))) in unwrap_record()
271 Box::new(tuple.iter().map(cow)) in unwrap_tuple()
275 (discriminant.into(), payload.as_deref().map(cow)) in unwrap_variant()
283 .map(cow) in unwrap_option()
287 Ok(t) => Ok(t.as_deref().map(cow)), in unwrap_result()
288 Err(e) => Err(e.as_deref().map(cow)), in unwrap_result()
293 Box::new(flags.iter().map(Into::into)) in unwrap_flags()
408 Box::new(self.params().map(|(_n, t)| t)) in params()