Home
last modified time | relevance | path

Searched refs:ident (Results 26 - 50 of 369) sorted by relevance

12345678910>>...15

/kernel/linux/linux-6.6/rust/kernel/init/
H A Dmacros.rs517 // Inherit all attributes and the type/ident tokens for the signature.
533 @args($($pinned_drop:ident)?),
536 $vis:vis struct $name:ident
585 @name($name:ident),
590 @fields_munch($field:ident : $($($(::)?core::)?marker::)?PhantomPinned, $($rest:tt)*),
597 @pinned_drop($($pinned_drop:ident)?),
623 @name($name:ident),
628 @fields_munch($field:ident : $type:ty, $($rest:tt)*),
635 @pinned_drop($($pinned_drop:ident)?),
656 @name($name:ident),
[all...]
/third_party/rust/crates/nom/src/sequence/
H A Dmod.rs206 ($name1:ident $ty1:ident, $name2: ident $ty2:ident, $($name:ident $ty:ident),*) => (
209 (__impl $($name:ident $ty: ident),+; $name1:ident $ty1:ident,
[all...]
/third_party/rust/crates/syn/src/
H A Dlifetime.rs21 pub ident: Ident,
51 if !crate::ident::xid_ok(&symbol[1..]) { in new()
57 ident: Ident::new(&symbol[1..], span), in new()
63 .join(self.ident.span()) in span()
69 self.ident.set_span(span); in set_span()
76 self.ident.fmt(formatter) in fmt()
84 ident: self.ident.clone(), in clone()
91 self.ident.eq(&other.ident) in eq()
[all...]
/third_party/rust/crates/cxx/gen/cmd/src/syntax/
H A Dtrivial.rs27 let mut insist_extern_types_are_trivial = |ident: &'a NamedType, reason| { in required_trivial_reasons()
28 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()
43 if let Type::Ident(ident) = &field.ty {
45 insist_extern_types_are_trivial(ident, reason);
58 Type::Ident(ident) => {
60 insist_extern_types_are_trivial(ident, reason);
64 if let Type::Ident(ident)
[all...]
H A Dresolve.rs12 pub fn resolve(&self, ident: &impl UnresolvedName) -> Resolution<'a> { in resolve()
13 let ident = ident.ident(); in resolve()
14 match self.try_resolve(ident) {
16 None => panic!("Unable to resolve type `{}`", ident),
20 pub fn try_resolve(&self, ident: &impl UnresolvedName) -> Option<Resolution<'a>> { in try_resolve()
21 let ident = ident.ident(); in try_resolve()
27 fn ident(&self) -> &Ident; ident() functions
31 fn ident(&self) -> &Ident { ident() functions
37 fn ident(&self) -> &Ident { ident() functions
43 fn ident(&self) -> &Ident { ident() functions
[all...]
H A Dident.rs11 fn check_cxx_ident(cx: &mut Check, ident: &str) { in check()
12 if ident.starts_with("cxxbridge") { in check()
13 cx.error(ident, error::CXXBRIDGE_RESERVED.msg); in check()
15 if ident.contains("__") { in check()
16 cx.error(ident, error::DOUBLE_UNDERSCORE.msg); in check()
20 fn check_rust_ident(cx: &mut Check, ident: &str) { in check()
21 if ident.starts_with("cxxbridge") { in check()
22 cx.error(ident, error::CXXBRIDGE_RESERVED.msg); in check()
/third_party/rust/crates/cxx/gen/lib/src/syntax/
H A Dtrivial.rs27 let mut insist_extern_types_are_trivial = |ident: &'a NamedType, reason| { in required_trivial_reasons()
28 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()
43 if let Type::Ident(ident) = &field.ty {
45 insist_extern_types_are_trivial(ident, reason);
58 Type::Ident(ident) => {
60 insist_extern_types_are_trivial(ident, reason);
64 if let Type::Ident(ident)
[all...]
H A Dresolve.rs12 pub fn resolve(&self, ident: &impl UnresolvedName) -> Resolution<'a> { in resolve()
13 let ident = ident.ident(); in resolve()
14 match self.try_resolve(ident) {
16 None => panic!("Unable to resolve type `{}`", ident),
20 pub fn try_resolve(&self, ident: &impl UnresolvedName) -> Option<Resolution<'a>> { in try_resolve()
21 let ident = ident.ident(); in try_resolve()
27 fn ident(&self) -> &Ident; ident() functions
31 fn ident(&self) -> &Ident { ident() functions
37 fn ident(&self) -> &Ident { ident() functions
43 fn ident(&self) -> &Ident { ident() functions
[all...]
H A Dident.rs11 fn check_cxx_ident(cx: &mut Check, ident: &str) { in check()
12 if ident.starts_with("cxxbridge") { in check()
13 cx.error(ident, error::CXXBRIDGE_RESERVED.msg); in check()
15 if ident.contains("__") { in check()
16 cx.error(ident, error::DOUBLE_UNDERSCORE.msg); in check()
20 fn check_rust_ident(cx: &mut Check, ident: &str) { in check()
21 if ident.starts_with("cxxbridge") { in check()
22 cx.error(ident, error::CXXBRIDGE_RESERVED.msg); in check()
/third_party/rust/crates/cxx/gen/build/src/syntax/
H A Dtrivial.rs27 let mut insist_extern_types_are_trivial = |ident: &'a NamedType, reason| { in required_trivial_reasons()
28 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()
43 if let Type::Ident(ident) = &field.ty {
45 insist_extern_types_are_trivial(ident, reason);
58 Type::Ident(ident) => {
60 insist_extern_types_are_trivial(ident, reason);
64 if let Type::Ident(ident)
[all...]
H A Dresolve.rs12 pub fn resolve(&self, ident: &impl UnresolvedName) -> Resolution<'a> { in resolve()
13 let ident = ident.ident(); in resolve()
14 match self.try_resolve(ident) {
16 None => panic!("Unable to resolve type `{}`", ident),
20 pub fn try_resolve(&self, ident: &impl UnresolvedName) -> Option<Resolution<'a>> { in try_resolve()
21 let ident = ident.ident(); in try_resolve()
27 fn ident(&self) -> &Ident; ident() functions
31 fn ident(&self) -> &Ident { ident() functions
37 fn ident(&self) -> &Ident { ident() functions
43 fn ident(&self) -> &Ident { ident() functions
[all...]
H A Dident.rs11 fn check_cxx_ident(cx: &mut Check, ident: &str) { in check()
12 if ident.starts_with("cxxbridge") { in check()
13 cx.error(ident, error::CXXBRIDGE_RESERVED.msg); in check()
15 if ident.contains("__") { in check()
16 cx.error(ident, error::DOUBLE_UNDERSCORE.msg); in check()
20 fn check_rust_ident(cx: &mut Check, ident: &str) { in check()
21 if ident.starts_with("cxxbridge") { in check()
22 cx.error(ident, error::CXXBRIDGE_RESERVED.msg); in check()
/third_party/rust/crates/cxx/syntax/
H A Dtrivial.rs27 let mut insist_extern_types_are_trivial = |ident: &'a NamedType, reason| { in required_trivial_reasons()
28 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()
43 if let Type::Ident(ident) = &field.ty {
45 insist_extern_types_are_trivial(ident, reason);
58 Type::Ident(ident) => {
60 insist_extern_types_are_trivial(ident, reason);
64 if let Type::Ident(ident)
[all...]
H A Dresolve.rs12 pub fn resolve(&self, ident: &impl UnresolvedName) -> Resolution<'a> { in resolve()
13 let ident = ident.ident(); in resolve()
14 match self.try_resolve(ident) {
16 None => panic!("Unable to resolve type `{}`", ident),
20 pub fn try_resolve(&self, ident: &impl UnresolvedName) -> Option<Resolution<'a>> { in try_resolve()
21 let ident = ident.ident(); in try_resolve()
27 fn ident(&self) -> &Ident; ident() functions
31 fn ident(&self) -> &Ident { ident() functions
37 fn ident(&self) -> &Ident { ident() functions
43 fn ident(&self) -> &Ident { ident() functions
[all...]
H A Dident.rs11 fn check_cxx_ident(cx: &mut Check, ident: &str) { in check()
12 if ident.starts_with("cxxbridge") { in check()
13 cx.error(ident, error::CXXBRIDGE_RESERVED.msg); in check()
15 if ident.contains("__") { in check()
16 cx.error(ident, error::DOUBLE_UNDERSCORE.msg); in check()
20 fn check_rust_ident(cx: &mut Check, ident: &str) { in check()
21 if ident.starts_with("cxxbridge") { in check()
22 cx.error(ident, error::CXXBRIDGE_RESERVED.msg); in check()
/third_party/rust/crates/cxx/macro/src/syntax/
H A Dtrivial.rs27 let mut insist_extern_types_are_trivial = |ident: &'a NamedType, reason| { in required_trivial_reasons()
28 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()
43 if let Type::Ident(ident) = &field.ty {
45 insist_extern_types_are_trivial(ident, reason);
58 Type::Ident(ident) => {
60 insist_extern_types_are_trivial(ident, reason);
64 if let Type::Ident(ident)
[all...]
H A Dresolve.rs12 pub fn resolve(&self, ident: &impl UnresolvedName) -> Resolution<'a> { in resolve()
13 let ident = ident.ident(); in resolve()
14 match self.try_resolve(ident) {
16 None => panic!("Unable to resolve type `{}`", ident),
20 pub fn try_resolve(&self, ident: &impl UnresolvedName) -> Option<Resolution<'a>> { in try_resolve()
21 let ident = ident.ident(); in try_resolve()
27 fn ident(&self) -> &Ident; ident() functions
31 fn ident(&self) -> &Ident { ident() functions
37 fn ident(&self) -> &Ident { ident() functions
43 fn ident(&self) -> &Ident { ident() functions
[all...]
H A Dident.rs11 fn check_cxx_ident(cx: &mut Check, ident: &str) { in check()
12 if ident.starts_with("cxxbridge") { in check()
13 cx.error(ident, error::CXXBRIDGE_RESERVED.msg); in check()
15 if ident.contains("__") { in check()
16 cx.error(ident, error::DOUBLE_UNDERSCORE.msg); in check()
20 fn check_rust_ident(cx: &mut Check, ident: &str) { in check()
21 if ident.starts_with("cxxbridge") { in check()
22 cx.error(ident, error::CXXBRIDGE_RESERVED.msg); in check()
/third_party/rust/crates/syn/codegen/src/
H A Dhash.rs20 let type_name = &node.ident; in expand_impl_body()
21 let ident = Ident::new(type_name, Span::call_site()); in expand_impl_body()
34 #ident::#variant => { in expand_impl_body()
63 if node.ident == "Expr" { in expand_impl_body()
72 #ident::#variant(#(#pats),*) => { in expand_impl_body()
79 let nonexhaustive = if node.ident == "Expr" { in expand_impl_body()
100 let ident = Ident::new(f, Span::call_site()); in expand_impl_body()
101 let mut val = quote!(self.#ident); in expand_impl_body()
118 || node.ident == "Member" in expand_impl()
119 || node.ident in expand_impl()
[all...]
/kernel/linux/linux-6.6/rust/macros/
H A Dvtable.rs14 TokenTree::Ident(ident) => match ident.to_string().as_str() {
34 TokenTree::Ident(ident) if ident.to_string() == "fn" => {
36 Some(TokenTree::Ident(ident)) => ident.to_string(),
42 TokenTree::Ident(ident) if ident.to_string() == "const" => {
44 Some(TokenTree::Ident(ident)) => ident
[all...]
/third_party/rust/crates/serde/serde/src/
H A Dmacros.rs112 (<$visitor:ident: Visitor<$lifetime:tt>> $($func:ident)*) => {
116 ($($func:ident)*) => {
124 ($func:ident<$l:tt, $v:ident>($($arg:ident : $ty:ty),*)) => {
141 (bool<$l:tt, $v:ident>) => {
144 (i8<$l:tt, $v:ident>) => {
147 (i16<$l:tt, $v:ident>) => {
150 (i32<$l:tt, $v:ident>)
[all...]
/third_party/rust/crates/cxx/macro/src/
H A Dexpand.rs73 let ident = &ety.name.rust; in expand()
74 if !types.structs.contains_key(ident) && !types.enums.contains_key(ident) { in expand()
96 ImplKey::RustBox(ident) => { in expand()
97 hidden.extend(expand_rust_box(ident, types, explicit_impl)); in expand()
99 ImplKey::RustVec(ident) => { in expand()
100 hidden.extend(expand_rust_vec(ident, types, explicit_impl)); in expand()
102 ImplKey::UniquePtr(ident) => { in expand()
103 expanded.extend(expand_unique_ptr(ident, types, explicit_impl)); in expand()
105 ImplKey::SharedPtr(ident) in expand()
[all...]
/third_party/rust/crates/regex/regex-capi/src/
H A Dmacros.rs2 (fn $name:ident($($arg:ident: $arg_ty:ty),*,) -> $ret:ty $body:block) => {
5 (fn $name:ident($($arg:ident: $arg_ty:ty),*) -> $ret:ty $body:block) => {
30 (fn $name:ident($($arg:ident: $arg_ty:ty),*,) $body:block) => {
33 (fn $name:ident($($arg:ident: $arg_ty:ty),*) $body:block) => {
/third_party/rust/crates/rustix/src/backend/linux_raw/arch/
H A Dmod.rs59 ($nr:ident) => {
65 ($nr:ident, $a0:expr) => {
72 ($nr:ident, $a0:expr, $a1:expr) => {
80 ($nr:ident, $a0:expr, $a1:expr, $a2:expr) => {
89 ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr) => {
99 ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr) => {
110 ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr, $a5:expr) => {
122 ($nr:ident, $a0:expr, $a1:expr, $a2:expr, $a3:expr, $a4:expr, $a5:expr, $a6:expr) => {
137 ($nr:ident) => {
143 ($nr:ident,
[all...]
/third_party/rust/crates/rust-openssl/openssl-errors/src/
H A Dlib.rs249 $lib_vis:vis library $lib_name:ident($lib_str:expr) {
253 $func_name:ident($func_str:expr);
260 $reason_name:ident($reason_str:expr);
296 (@func_consts $lib_name:ident; $n:expr; $(#[$attr:meta])* $name:ident($str:expr); $($tt:tt)*) => {
303 (@func_consts $lib_name:ident; $n:expr;) => {};
304 (@reason_consts $lib_name:ident; $n:expr; $(#[$attr:meta])* $name:ident; $($tt:tt)*) => {
309 (@reason_consts $lib_name:ident; $n:expr;) => {};
310 (@count $i:ident;
[all...]

Completed in 6 milliseconds

12345678910>>...15