/aosp_15_r20/external/rust/cxx/src/ |
D | rust_string.rs | 10 pub struct RustString { struct 14 impl RustString { impl 16 unsafe { mem::transmute::<String, RustString>(s) } in from() 20 unsafe { &*(s as *const String as *const RustString) } in from_ref() constant 24 unsafe { &mut *(s as *mut String as *mut RustString) } in from_mut() 28 unsafe { mem::transmute::<RustString, String>(self) } in into_string() 32 unsafe { &*(self as *const RustString as *const String) } in as_string() constant 36 unsafe { &mut *(self as *mut RustString as *mut String) } in as_mut_string() 40 impl Drop for RustString { implementation 46 const_assert_eq!(mem::size_of::<[usize; 3]>(), mem::size_of::<RustString>()); [all …]
|
D | rust_vec.rs | 4 use crate::rust_string::RustString; 77 impl RustVec<RustString> { 80 let ptr = v.as_mut_ptr().cast::<RustString>(); in from_vec_string() 87 Self::from_ref(unsafe { &*(v as *const Vec<String> as *const Vec<RustString>) }) in from_ref_vec_string() 91 Self::from_mut(unsafe { &mut *(v as *mut Vec<String> as *mut Vec<RustString>) }) in from_mut_vec_string() 103 unsafe { &*(self as *const RustVec<RustString> as *const Vec<String>) } in as_vec_string() 107 unsafe { &mut *(self as *mut RustVec<RustString> as *mut Vec<String>) } in as_mut_vec_string()
|
D | lib.rs | 516 pub use crate::rust_string::RustString;
|
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/cxx-1.0.120/src/ |
H A D | rust_string.rs | 10 pub struct RustString { struct 14 impl RustString { implementation 16 unsafe { mem::transmute::<String, RustString>(s) } in from() 20 unsafe { &*(s as *const String as *const RustString) } in from_ref() constant 24 unsafe { &mut *(s as *mut String as *mut RustString) } in from_mut() 28 unsafe { mem::transmute::<RustString, String>(self) } in into_string() 32 unsafe { &*(self as *const RustString as *const String) } in as_string() constant 36 unsafe { &mut *(self as *mut RustString as *mut String) } in as_mut_string() 40 impl Drop for RustString { implementation 46 const_assert_eq!(mem::size_of::<[usize; 3]>(), mem::size_of::<RustString>()); [all …]
|
H A D | rust_vec.rs | 4 use crate::rust_string::RustString; 77 impl RustVec<RustString> { 80 let ptr = v.as_mut_ptr().cast::<RustString>(); in from_vec_string() 87 Self::from_ref(unsafe { &*(v as *const Vec<String> as *const Vec<RustString>) }) in from_ref_vec_string() 91 Self::from_mut(unsafe { &mut *(v as *mut Vec<String> as *mut Vec<RustString>) }) in from_mut_vec_string() 103 unsafe { &*(self as *const RustVec<RustString> as *const Vec<String>) } in as_vec_string() 107 unsafe { &mut *(self as *mut RustVec<RustString> as *mut Vec<String>) } in as_mut_vec_string()
|
H A D | lib.rs | 517 pub use crate::rust_string::RustString;
|
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.120/src/ |
H A D | expand.rs | 464 if arg.ty == RustString { in expand_cxx_function_decl() 532 Type::Ident(ident) if ident.rust == RustString => { in expand_cxx_function_shim() 533 quote_spanned!(span=> #var.as_mut_ptr() as *const ::cxx::private::RustString) in expand_cxx_function_shim() 551 Type::Ident(ident) if ident.rust == RustString => match ty.mutable { in expand_cxx_function_shim() 552 false => quote_spanned!(span=> ::cxx::private::RustString::from_ref(#var)), in expand_cxx_function_shim() 553 true => quote_spanned!(span=> ::cxx::private::RustString::from_mut(#var)), in expand_cxx_function_shim() 555 Type::RustVec(vec) if vec.inner == RustString => match ty.mutable { in expand_cxx_function_shim() 653 Type::Ident(ident) if ident.rust == RustString => { in expand_cxx_function_shim() 664 if vec.inner == RustString { in expand_cxx_function_shim() 678 Type::Ident(ident) if ident.rust == RustString => match ty.mutable { in expand_cxx_function_shim() [all …]
|
/aosp_15_r20/external/rust/cxx/macro/src/ |
D | expand.rs | 464 if arg.ty == RustString { in expand_cxx_function_decl() 532 Type::Ident(ident) if ident.rust == RustString => { in expand_cxx_function_shim() 533 quote_spanned!(span=> #var.as_mut_ptr() as *const ::cxx::private::RustString) in expand_cxx_function_shim() 551 Type::Ident(ident) if ident.rust == RustString => match ty.mutable { in expand_cxx_function_shim() 552 false => quote_spanned!(span=> ::cxx::private::RustString::from_ref(#var)), in expand_cxx_function_shim() 553 true => quote_spanned!(span=> ::cxx::private::RustString::from_mut(#var)), in expand_cxx_function_shim() 555 Type::RustVec(vec) if vec.inner == RustString => match ty.mutable { in expand_cxx_function_shim() 653 Type::Ident(ident) if ident.rust == RustString => { in expand_cxx_function_shim() 664 if vec.inner == RustString { in expand_cxx_function_shim() 678 Type::Ident(ident) if ident.rust == RustString => match ty.mutable { in expand_cxx_function_shim() [all …]
|
/aosp_15_r20/external/rust/cxx/syntax/ |
D | atom.rs | 22 RustString, enumerator 48 "String" => Some(RustString), in from_str() 79 RustString => "String", in as_ref()
|
D | check.rs | 129 | F64 | RustString, in check_type_rust_vec() 172 Some(Char | RustString) => {} in check_type_shared_ptr() 195 Some(Char | RustString) => {} in check_type_weak_ptr() 221 Some(Bool | RustString) => {} in check_type_cxx_vector()
|
D | improper.rs | 18 Definite(atom == RustString) in determine_improper_ctype()
|
D | pod.rs | 13 CxxString | RustString => false, in is_guaranteed_pod()
|
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/cxxbridge-cmd-1.0.121/src/syntax/ |
H A D | atom.rs | 22 RustString, enumerator 48 "String" => Some(RustString), in from_str() 79 RustString => "String", in as_ref()
|
H A D | check.rs | 129 | F64 | RustString, in check_type_rust_vec() 172 Some(Char | RustString) => {} in check_type_shared_ptr() 195 Some(Char | RustString) => {} in check_type_weak_ptr() 221 Some(Bool | RustString) => {} in check_type_cxx_vector()
|
H A D | improper.rs | 18 Definite(atom == RustString) in determine_improper_ctype()
|
H A D | pod.rs | 13 CxxString | RustString => false, in is_guaranteed_pod()
|
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.120/src/syntax/ |
H A D | atom.rs | 22 RustString, enumerator 48 "String" => Some(RustString), in from_str() 79 RustString => "String", in as_ref()
|
H A D | check.rs | 129 | F64 | RustString, in check_type_rust_vec() 172 Some(Char | RustString) => {} in check_type_shared_ptr() 195 Some(Char | RustString) => {} in check_type_weak_ptr() 221 Some(Bool | RustString) => {} in check_type_cxx_vector()
|
H A D | improper.rs | 18 Definite(atom == RustString) in determine_improper_ctype()
|
H A D | pod.rs | 13 CxxString | RustString => false, in is_guaranteed_pod()
|
H A D | tokens.rs | 20 } else if ident.rust == RustString { in to_tokens()
|
/aosp_15_r20/external/rust/cxx/src/symbols/ |
D | rust_vec.rs | 4 use crate::rust_string::RustString; 74 rust_vec_shims!("string", RustString);
|
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/cxx-1.0.120/src/symbols/ |
H A D | rust_vec.rs | 4 use crate::rust_string::RustString; 74 rust_vec_shims!("string", RustString);
|
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/cxxbridge-cmd-1.0.121/src/gen/ |
H A D | write.rs | 212 Some(RustString) => out.builtin.rust_string = true, in pick_includes_and_builtins() 730 if arg.ty == RustString { in write_cxx_function_shim() 828 } else if arg.ty == RustString { in write_cxx_function_shim() 1025 if arg.ty != RustString && out.types.needs_indirect_abi(&arg.ty) { in write_rust_function_shim_impl() 1096 ty if ty != RustString && out.types.needs_indirect_abi(ty) => write!(out, "$.value"), in write_rust_function_shim_impl() 1324 RustString => write!(out, "::rust::String"), in write_atom()
|
/aosp_15_r20/external/rust/cxx/gen/src/ |
D | write.rs | 212 Some(RustString) => out.builtin.rust_string = true, in pick_includes_and_builtins() 730 if arg.ty == RustString { in write_cxx_function_shim() 828 } else if arg.ty == RustString { in write_cxx_function_shim() 1025 if arg.ty != RustString && out.types.needs_indirect_abi(&arg.ty) { in write_rust_function_shim_impl() 1096 ty if ty != RustString && out.types.needs_indirect_abi(ty) => write!(out, "$.value"), in write_rust_function_shim_impl() 1324 RustString => write!(out, "::rust::String"), in write_atom()
|