/third_party/rust/crates/regex/regex-capi/src/ |
D | rure.rs | 138 Box::into_raw(Box::new(re)) 249 Box::into_raw(Box::new(IterCaptureNames { 296 let ptr = cs.into_raw(); 309 Box::into_raw(Box::new(Iter { 404 Box::into_raw(Box::new(captures)) 444 Box::into_raw(Box::new(Options::default())) 514 Box::into_raw(Box::new(RegexSet { re: re })) 622 c_esc_pat.into_raw() as *const c_char in rure_escape()
|
D | error.rs | 51 Box::into_raw(Box::new(Error::new(ErrorKind::None)))
|
/third_party/rust/crates/cxx/book/src/binding/ |
D | box.md | 39 // Important: requires that `raw` came from an into_raw call. Do not 43 T *into_raw() noexcept;
|
/third_party/rust/crates/cxx/src/symbols/ |
D | exception.rs | 14 let raw_str = Box::into_raw(string.into_owned().into_boxed_str()); in exception()
|
/third_party/rust/crates/libloading/src/os/unix/ |
D | mod.rs | 297 pub fn into_raw(self) -> *mut raw::c_void { in into_raw() method 367 pub fn into_raw(self) -> *mut raw::c_void { in into_raw() method
|
/third_party/rust/crates/once_cell/src/ |
D | race.rs | 324 let ptr = Box::into_raw(value); in set() 370 ptr = Box::into_raw(val); in get_or_try_init()
|
/third_party/rust/crates/libloading/src/os/windows/ |
D | mod.rs | 258 pub fn into_raw(self) -> HMODULE { in into_raw() method 335 pub fn into_raw(self) -> FARPROC { in into_raw() method
|
/third_party/rust/crates/rust-openssl/openssl/src/ssl/ |
D | bio.rs | 48 BIO_set_data(bio, Box::into_raw(state) as *mut _); in new() 249 Ok(BIO_METHOD(Box::into_raw(ptr)))
|
D | mod.rs | 1568 let data = Box::into_raw(Box::new(data)) as *mut c_void; in set_ex_data_inner() 2936 Box::into_raw(data) as *mut c_void, in set_ex_data()
|
/third_party/rust/crates/syn/examples/lazy-static/lazy-static/src/ |
D | lib.rs | 115 Box::into_raw(Box::new(#init)) in lazy_static()
|
/third_party/rust/crates/nix/src/ |
D | unistd.rs | 3056 Ok(n) => n.into_raw(), 3057 Err(_) => CString::new("").unwrap().into_raw(), 3060 Ok(s) => CString::new(s.as_str()).unwrap().into_raw(), 3061 Err(_) => CString::new("").unwrap().into_raw(), 3064 Ok(s) => CString::new(s.as_str()).unwrap().into_raw(), 3065 Err(_) => CString::new("").unwrap().into_raw(), 3069 pw_passwd: u.passwd.into_raw(), 3071 pw_gecos: u.gecos.into_raw(), 3082 pw_class: u.class.into_raw(), 3098 pw_age: CString::new("").unwrap().into_raw(), [all …]
|
/third_party/rust/crates/libloading/src/ |
D | safe.rs | 221 pub unsafe fn into_raw(self) -> imp::Symbol<T> { in into_raw() method
|
/third_party/rust/crates/cxx/macro/src/ |
D | expand.rs | 533 quote_spanned!(span=> ::cxx::alloc::boxed::Box::into_raw(#var).cast()) in expand_cxx_function_shim() 535 quote_spanned!(span=> ::cxx::alloc::boxed::Box::into_raw(#var)) in expand_cxx_function_shim() 540 quote_spanned!(span=> ::cxx::UniquePtr::into_raw(#var).cast()) in expand_cxx_function_shim() 542 quote_spanned!(span=> ::cxx::UniquePtr::into_raw(#var)) in expand_cxx_function_shim() 1055 Type::RustBox(_) => Some(quote_spanned!(span=> ::cxx::alloc::boxed::Box::into_raw)), in expand_rust_function_shim_impl() 1063 Type::UniquePtr(_) => Some(quote_spanned!(span=> ::cxx::UniquePtr::into_raw)), in expand_rust_function_shim_impl() 1282 …::cxx::alloc::boxed::Box::into_raw(::cxx::alloc::boxed::Box::new(::cxx::core::mem::MaybeUninit::un… in expand_rust_box()
|
/third_party/rust/crates/cxx/src/ |
D | unique_ptr.rs | 90 pub fn into_raw(self) -> *mut T { in into_raw() function
|
/third_party/rust/crates/nix/src/mount/ |
D | bsd.rs | 242 let ptr = s.to_owned().into_raw() as *const u8; in push_nix_path()
|
/third_party/rust/crates/cxx/tests/ |
D | test.rs | 313 Box::into_raw(Box::new(R(2020usize))) in cxx_test_suite_get_box()
|
/third_party/rust/crates/cxx/include/ |
D | cxx.h | 284 T *into_raw() noexcept; 818 T *Box<T>::into_raw() noexcept {
|
/third_party/rust/crates/os_str_bytes/src/ |
D | raw_str.rs | 58 let value = Box::into_raw(self); in transmute_box()
|
/third_party/rust/crates/memchr/bench/data/code/ |
D | rust-library.rs | 15550 unsafe { Box::from_raw(Box::into_raw(v) as *mut str) } 15660 let x_ptr = Arc::into_raw(x); 15679 let ptr = Arc::into_raw(arc.clone()); 15687 let ptr = Arc::into_raw(arc.clone()); 15699 let y_ptr = Weak::into_raw(y); 15720 let ptr = Weak::into_raw(weak.clone()); 15729 let ptr = Weak::into_raw(weak.clone()); 20273 pub fn into_raw(this: Self) -> *const T { 21247 unsafe { Rc::from_raw(Rc::into_raw(rc) as *const str) } 21333 Ok(unsafe { Rc::from_raw(Rc::into_raw(boxed_slice) as *mut [T; N]) }) [all …]
|