Lines Matching refs:cxx

38         Api::Enum(enm) => !out.types.cxx.contains(&enm.name.rust),
88 if !out.types.cxx.contains(&strct.name.rust) {
104 if !out.types.cxx.contains(&enm.name.rust) {
258 writeln!(out, "struct {} final {{", strct.name.cxx);
264 writeln!(out, "{};", field.name.cxx);
276 let local_name = method.name.cxx.to_string();
289 strct.name.cxx,
294 strct.name.cxx,
302 strct.name.cxx,
307 strct.name.cxx,
312 strct.name.cxx,
317 strct.name.cxx,
329 writeln!(out, "struct {};", ident.cxx);
338 write!(out, "enum class {} : ", enm.name.cxx);
344 writeln!(out, "using {} = {};", ident.cxx, ident.to_fully_qualified());
358 ety.name.cxx,
368 let local_name = method.name.cxx.to_string();
377 writeln!(out, " ~{}() = delete;", ety.name.cxx);
403 write!(out, "enum class {} : ", enm.name.cxx);
408 writeln!(out, " {} = {},", variant.name.cxx, variant.discriminant);
425 enm.name.cxx,
427 write!(out, "static_assert(sizeof({}) == sizeof(", enm.name.cxx);
435 ">({}::{}) == {}, \"disagrees with the value in #[cxx::bridge]\");",
436 enm.name.cxx, variant.name.cxx, variant.discriminant,
444 // the user in the form of an unsafe impl of cxx::ExternType:
447 // type Id = cxx::type_id!("...");
448 // type Kind = cxx::kind::Trivial;
514 link_name, strct.name.cxx,
522 link_name, strct.name.cxx,
532 link_name, strct.name.cxx,
539 link_name, strct.name.cxx,
547 link_name, strct.name.cxx,
554 link_name, strct.name.cxx,
565 link_name, strct.name.cxx,
584 strct.name.cxx,
594 strct.name.cxx,
610 strct.name.cxx,
620 strct.name.cxx,
630 strct.name.cxx,
644 strct.name.cxx,
681 ety.name.cxx,
691 ety.name.cxx,
733 write!(out, "const *{}", arg.name.cxx);
736 write!(out, "const *{}", arg.name.cxx);
780 efn.name.cxx,
825 write!(out, "::from_raw({})", arg.name.cxx);
828 write!(out, "({})", arg.name.cxx);
834 arg.name.cxx,
839 write!(out, "(::rust::unsafe_bitcopy, *{})", arg.name.cxx);
842 write!(out, "::std::move(*{})", arg.name.cxx);
844 write!(out, "{}", arg.name.cxx);
957 None => efn.name.cxx.to_string(),
960 out.types.resolve(&receiver.ty).name.cxx,
961 efn.name.cxx,
984 write!(out, "{}", arg.name.cxx);
1031 writeln!(out, "> {}$(::std::move({0}));", arg.name.cxx);
1093 write!(out, "{}", arg.name.cxx);
1216 write!(out, "{}", arg.name.cxx);
1656 UniquePtr::Ident(ty) => &out.types.resolve(ty).name.cxx,