Home
last modified time | relevance | path

Searched refs:rust (Results 1 - 25 of 97) sorted by relevance

1234

/third_party/rust/crates/cxx/tests/ffi/
H A Dtests.h2 #include "rust/cxx.h"
54 rust::String cOverloadedMethod(int32_t x) const;
55 rust::String cOverloadedMethod(rust::Str x) const;
93 rust::Box<R> c_return_box();
101 rust::Str c_return_str(const Shared &shared);
102 rust::Slice<const char> c_return_slice_char(const Shared &shared);
103 rust::Slice<uint8_t> c_return_mutsliceu8(rust::Slice<uint8_t> slice);
104 rust
[all...]
H A Dtests.cc63 rust::Box<R> c_return_box() { in c_return_box()
65 rust::Box<Shared> box{shared}; // explicit constructor from const T& in c_return_box()
66 rust::Box<Shared> other{std::move(shared)}; // explicit constructor from T&& in c_return_box()
68 rust::Box<Shared> box2(*box); // copy from another Box in c_return_box()
69 rust::Box<Shared> other2(std::move(other)); // move constructor in c_return_box()
70 rust::Box<Shared>::in_place(shared.z); // placement static factory in c_return_box()
71 rust::Box<Shared>::in_place<size_t>(0); in c_return_box()
72 return rust::Box<R>::from_raw(cxx_test_suite_get_box()); in c_return_box()
99 rust::Str c_return_str(const Shared &shared) { in c_return_str()
104 rust
[all...]
/third_party/rust/crates/cxx/gen/lib/src/syntax/
H A Dcheck.rs83 let ident = &name.rust; in check_type_ident()
88 && !cx.types.rust.contains(ident) in check_type_ident()
97 if cx.types.cxx.contains(&ident.rust) in check_type_box()
98 && !cx.types.aliases.contains_key(&ident.rust) in check_type_box()
99 && !cx.types.structs.contains_key(&ident.rust) in check_type_box()
100 && !cx.types.enums.contains_key(&ident.rust) in check_type_box()
105 if Atom::from(&ident.rust).is_none() { in check_type_box()
116 if cx.types.cxx.contains(&ident.rust) in check_type_rust_vec()
117 && !cx.types.aliases.contains_key(&ident.rust) in check_type_rust_vec()
118 && !cx.types.structs.contains_key(&ident.rust) in check_type_rust_vec()
[all...]
H A Dtypes.rs20 pub rust: UnorderedSet<&'a Ident>,
36 let mut rust = UnorderedSet::new(); variables
58 resolutions.insert(&name.rust, Resolution { name, generics });
73 let ident = &strct.name.rust;
84 structs.insert(&strct.name.rust, strct);
98 let ident = &enm.name.rust;
113 cxx.insert(&enm.name.rust);
118 let ident = &ety.name.rust;
135 let ident = &ety.name.rust;
139 rust
[all...]
H A Dtokens.rs14 if ident.rust == Char { in to_tokens()
15 let span = ident.rust.span(); in to_tokens()
17 } else if ident.rust == CxxString { in to_tokens()
18 let span = ident.rust.span(); in to_tokens()
20 } else if ident.rust == RustString { in to_tokens()
21 let span = ident.rust.span(); in to_tokens()
53 name.rust.to_tokens(tokens); in to_tokens()
54 Token![:](name.rust.span()).to_tokens(tokens); in to_tokens()
180 self.name.rust.to_tokens(tokens); in to_tokens()
189 self.name.rust in to_tokens()
[all...]
H A Dtrivial.rs28 if cxx.contains(&ident.rust) in required_trivial_reasons()
29 && !structs.contains_key(&ident.rust) in required_trivial_reasons()
30 && !enums.contains_key(&ident.rust) in required_trivial_reasons()
33 .entry(&ident.rust) in required_trivial_reasons()
147 field_of.insert(&strct.name.rust); in fmt()
150 argument_of.insert(&efn.name.rust); in fmt()
153 return_of.insert(&efn.name.rust); in fmt()
165 unpinned_mut.insert(&efn.name.rust); in fmt()
287 } => write!(f, "{}<{}>", desc, param.rust), in fmt()
297 write!(f, "&[{}]", param.rust) in fmt()
[all...]
/third_party/rust/crates/cxx/syntax/
H A Dcheck.rs83 let ident = &name.rust; in check_type_ident()
88 && !cx.types.rust.contains(ident) in check_type_ident()
97 if cx.types.cxx.contains(&ident.rust) in check_type_box()
98 && !cx.types.aliases.contains_key(&ident.rust) in check_type_box()
99 && !cx.types.structs.contains_key(&ident.rust) in check_type_box()
100 && !cx.types.enums.contains_key(&ident.rust) in check_type_box()
105 if Atom::from(&ident.rust).is_none() { in check_type_box()
116 if cx.types.cxx.contains(&ident.rust) in check_type_rust_vec()
117 && !cx.types.aliases.contains_key(&ident.rust) in check_type_rust_vec()
118 && !cx.types.structs.contains_key(&ident.rust) in check_type_rust_vec()
[all...]
H A Dtypes.rs20 pub rust: UnorderedSet<&'a Ident>,
36 let mut rust = UnorderedSet::new(); variables
58 resolutions.insert(&name.rust, Resolution { name, generics });
73 let ident = &strct.name.rust;
84 structs.insert(&strct.name.rust, strct);
98 let ident = &enm.name.rust;
113 cxx.insert(&enm.name.rust);
118 let ident = &ety.name.rust;
135 let ident = &ety.name.rust;
139 rust
[all...]
H A Dtokens.rs14 if ident.rust == Char { in to_tokens()
15 let span = ident.rust.span(); in to_tokens()
17 } else if ident.rust == CxxString { in to_tokens()
18 let span = ident.rust.span(); in to_tokens()
20 } else if ident.rust == RustString { in to_tokens()
21 let span = ident.rust.span(); in to_tokens()
53 name.rust.to_tokens(tokens); in to_tokens()
54 Token![:](name.rust.span()).to_tokens(tokens); in to_tokens()
180 self.name.rust.to_tokens(tokens); in to_tokens()
189 self.name.rust in to_tokens()
[all...]
H A Dtrivial.rs28 if cxx.contains(&ident.rust) in required_trivial_reasons()
29 && !structs.contains_key(&ident.rust) in required_trivial_reasons()
30 && !enums.contains_key(&ident.rust) in required_trivial_reasons()
33 .entry(&ident.rust) in required_trivial_reasons()
147 field_of.insert(&strct.name.rust); in fmt()
150 argument_of.insert(&efn.name.rust); in fmt()
153 return_of.insert(&efn.name.rust); in fmt()
165 unpinned_mut.insert(&efn.name.rust); in fmt()
287 } => write!(f, "{}<{}>", desc, param.rust), in fmt()
297 write!(f, "&[{}]", param.rust) in fmt()
[all...]
/third_party/rust/crates/cxx/gen/cmd/src/syntax/
H A Dcheck.rs83 let ident = &name.rust; in check_type_ident()
88 && !cx.types.rust.contains(ident) in check_type_ident()
97 if cx.types.cxx.contains(&ident.rust) in check_type_box()
98 && !cx.types.aliases.contains_key(&ident.rust) in check_type_box()
99 && !cx.types.structs.contains_key(&ident.rust) in check_type_box()
100 && !cx.types.enums.contains_key(&ident.rust) in check_type_box()
105 if Atom::from(&ident.rust).is_none() { in check_type_box()
116 if cx.types.cxx.contains(&ident.rust) in check_type_rust_vec()
117 && !cx.types.aliases.contains_key(&ident.rust) in check_type_rust_vec()
118 && !cx.types.structs.contains_key(&ident.rust) in check_type_rust_vec()
[all...]
H A Dtokens.rs14 if ident.rust == Char { in to_tokens()
15 let span = ident.rust.span(); in to_tokens()
17 } else if ident.rust == CxxString { in to_tokens()
18 let span = ident.rust.span(); in to_tokens()
20 } else if ident.rust == RustString { in to_tokens()
21 let span = ident.rust.span(); in to_tokens()
53 name.rust.to_tokens(tokens); in to_tokens()
54 Token![:](name.rust.span()).to_tokens(tokens); in to_tokens()
180 self.name.rust.to_tokens(tokens); in to_tokens()
189 self.name.rust in to_tokens()
[all...]
H A Dtypes.rs20 pub rust: UnorderedSet<&'a Ident>,
36 let mut rust = UnorderedSet::new(); variables
58 resolutions.insert(&name.rust, Resolution { name, generics });
73 let ident = &strct.name.rust;
84 structs.insert(&strct.name.rust, strct);
98 let ident = &enm.name.rust;
113 cxx.insert(&enm.name.rust);
118 let ident = &ety.name.rust;
135 let ident = &ety.name.rust;
139 rust
[all...]
H A Dtrivial.rs28 if cxx.contains(&ident.rust) in required_trivial_reasons()
29 && !structs.contains_key(&ident.rust) in required_trivial_reasons()
30 && !enums.contains_key(&ident.rust) in required_trivial_reasons()
33 .entry(&ident.rust) in required_trivial_reasons()
147 field_of.insert(&strct.name.rust); in fmt()
150 argument_of.insert(&efn.name.rust); in fmt()
153 return_of.insert(&efn.name.rust); in fmt()
165 unpinned_mut.insert(&efn.name.rust); in fmt()
287 } => write!(f, "{}<{}>", desc, param.rust), in fmt()
297 write!(f, "&[{}]", param.rust) in fmt()
[all...]
/third_party/rust/crates/cxx/macro/src/syntax/
H A Dcheck.rs83 let ident = &name.rust; in check_type_ident()
88 && !cx.types.rust.contains(ident) in check_type_ident()
97 if cx.types.cxx.contains(&ident.rust) in check_type_box()
98 && !cx.types.aliases.contains_key(&ident.rust) in check_type_box()
99 && !cx.types.structs.contains_key(&ident.rust) in check_type_box()
100 && !cx.types.enums.contains_key(&ident.rust) in check_type_box()
105 if Atom::from(&ident.rust).is_none() { in check_type_box()
116 if cx.types.cxx.contains(&ident.rust) in check_type_rust_vec()
117 && !cx.types.aliases.contains_key(&ident.rust) in check_type_rust_vec()
118 && !cx.types.structs.contains_key(&ident.rust) in check_type_rust_vec()
[all...]
H A Dtypes.rs20 pub rust: UnorderedSet<&'a Ident>,
36 let mut rust = UnorderedSet::new(); variables
58 resolutions.insert(&name.rust, Resolution { name, generics });
73 let ident = &strct.name.rust;
84 structs.insert(&strct.name.rust, strct);
98 let ident = &enm.name.rust;
113 cxx.insert(&enm.name.rust);
118 let ident = &ety.name.rust;
135 let ident = &ety.name.rust;
139 rust
[all...]
H A Dtokens.rs14 if ident.rust == Char { in to_tokens()
15 let span = ident.rust.span(); in to_tokens()
17 } else if ident.rust == CxxString { in to_tokens()
18 let span = ident.rust.span(); in to_tokens()
20 } else if ident.rust == RustString { in to_tokens()
21 let span = ident.rust.span(); in to_tokens()
53 name.rust.to_tokens(tokens); in to_tokens()
54 Token![:](name.rust.span()).to_tokens(tokens); in to_tokens()
180 self.name.rust.to_tokens(tokens); in to_tokens()
189 self.name.rust in to_tokens()
[all...]
H A Dtrivial.rs28 if cxx.contains(&ident.rust) in required_trivial_reasons()
29 && !structs.contains_key(&ident.rust) in required_trivial_reasons()
30 && !enums.contains_key(&ident.rust) in required_trivial_reasons()
33 .entry(&ident.rust) in required_trivial_reasons()
147 field_of.insert(&strct.name.rust); in fmt()
150 argument_of.insert(&efn.name.rust); in fmt()
153 return_of.insert(&efn.name.rust); in fmt()
165 unpinned_mut.insert(&efn.name.rust); in fmt()
287 } => write!(f, "{}<{}>", desc, param.rust), in fmt()
297 write!(f, "&[{}]", param.rust) in fmt()
[all...]
/third_party/rust/crates/cxx/gen/build/src/syntax/
H A Dcheck.rs83 let ident = &name.rust; in check_type_ident()
88 && !cx.types.rust.contains(ident) in check_type_ident()
97 if cx.types.cxx.contains(&ident.rust) in check_type_box()
98 && !cx.types.aliases.contains_key(&ident.rust) in check_type_box()
99 && !cx.types.structs.contains_key(&ident.rust) in check_type_box()
100 && !cx.types.enums.contains_key(&ident.rust) in check_type_box()
105 if Atom::from(&ident.rust).is_none() { in check_type_box()
116 if cx.types.cxx.contains(&ident.rust) in check_type_rust_vec()
117 && !cx.types.aliases.contains_key(&ident.rust) in check_type_rust_vec()
118 && !cx.types.structs.contains_key(&ident.rust) in check_type_rust_vec()
[all...]
H A Dtypes.rs20 pub rust: UnorderedSet<&'a Ident>,
36 let mut rust = UnorderedSet::new(); variables
58 resolutions.insert(&name.rust, Resolution { name, generics });
73 let ident = &strct.name.rust;
84 structs.insert(&strct.name.rust, strct);
98 let ident = &enm.name.rust;
113 cxx.insert(&enm.name.rust);
118 let ident = &ety.name.rust;
135 let ident = &ety.name.rust;
139 rust
[all...]
H A Dtokens.rs14 if ident.rust == Char { in to_tokens()
15 let span = ident.rust.span(); in to_tokens()
17 } else if ident.rust == CxxString { in to_tokens()
18 let span = ident.rust.span(); in to_tokens()
20 } else if ident.rust == RustString { in to_tokens()
21 let span = ident.rust.span(); in to_tokens()
53 name.rust.to_tokens(tokens); in to_tokens()
54 Token![:](name.rust.span()).to_tokens(tokens); in to_tokens()
180 self.name.rust.to_tokens(tokens); in to_tokens()
189 self.name.rust in to_tokens()
[all...]
H A Dtrivial.rs28 if cxx.contains(&ident.rust) in required_trivial_reasons()
29 && !structs.contains_key(&ident.rust) in required_trivial_reasons()
30 && !enums.contains_key(&ident.rust) in required_trivial_reasons()
33 .entry(&ident.rust) in required_trivial_reasons()
147 field_of.insert(&strct.name.rust); in fmt()
150 argument_of.insert(&efn.name.rust); in fmt()
153 return_of.insert(&efn.name.rust); in fmt()
165 unpinned_mut.insert(&efn.name.rust); in fmt()
287 } => write!(f, "{}<{}>", desc, param.rust), in fmt()
297 write!(f, "&[{}]", param.rust) in fmt()
[all...]
/third_party/rust/crates/cxx/src/
H A Dcxx.cc37 // rust::String
38 void cxxbridge1$string$new(rust::String *self) noexcept;
39 void cxxbridge1$string$clone(rust::String *self,
40 const rust::String &other) noexcept;
41 bool cxxbridge1$string$from_utf8(rust::String *self, const char *ptr,
43 void cxxbridge1$string$from_utf8_lossy(rust::String *self, const char *ptr,
45 bool cxxbridge1$string$from_utf16(rust::String *self, const char16_t *ptr,
47 void cxxbridge1$string$from_utf16_lossy(rust::String *self, const char16_t *ptr,
49 void cxxbridge1$string$drop(rust::String *self) noexcept;
50 const char *cxxbridge1$string$ptr(const rust
73 namespace rust { global() namespace
789 namespace rust { global() namespace
[all...]
/third_party/rust/crates/cxx/macro/src/
H A Dexpand.rs73 let ident = &ety.name.rust; in expand()
121 // Work around https://github.com/rust-lang/rust/issues/67851. in expand()
155 let ident = &strct.name.rust; in expand_struct()
199 let ident = &strct.name.rust; in expand_struct_operators()
208 let local_name = format_ident!("__operator_eq_{}", strct.name.rust); in expand_struct_operators()
209 let prevent_unwind_label = format!("::{} as PartialEq>::eq", strct.name.rust); in expand_struct_operators()
221 let local_name = format_ident!("__operator_ne_{}", strct.name.rust); in expand_struct_operators()
222 let prevent_unwind_label = format!("::{} as PartialEq>::ne", strct.name.rust); in expand_struct_operators()
235 let local_name = format_ident!("__operator_lt_{}", strct.name.rust); in expand_struct_operators()
[all...]
/third_party/rust/crates/regex/bench/
H A Drun4 echo "Usage: $(basename $0) [rust | rust-bytes | pcre1 | pcre2 | re2 | onig | tcl ]" >&2
15 rust)
16 exec cargo bench --bench bench --features re-rust "$@"
18 rust-bytes)
19 exec cargo bench --bench bench --features re-rust-bytes "$@"

Completed in 17 milliseconds

1234