Home
last modified time | relevance | path

Searched refs:into_raw (Results 1 – 19 of 19) sorted by relevance

/third_party/rust/crates/regex/regex-capi/src/
Drure.rs138 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()
Derror.rs51 Box::into_raw(Box::new(Error::new(ErrorKind::None)))
/third_party/rust/crates/cxx/book/src/binding/
Dbox.md39 // Important: requires that `raw` came from an into_raw call. Do not
43 T *into_raw() noexcept;
/third_party/rust/crates/cxx/src/symbols/
Dexception.rs14 let raw_str = Box::into_raw(string.into_owned().into_boxed_str()); in exception()
/third_party/rust/crates/libloading/src/os/unix/
Dmod.rs297 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/
Drace.rs324 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/
Dmod.rs258 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/
Dbio.rs48 BIO_set_data(bio, Box::into_raw(state) as *mut _); in new()
249 Ok(BIO_METHOD(Box::into_raw(ptr)))
Dmod.rs1568 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/
Dlib.rs115 Box::into_raw(Box::new(#init)) in lazy_static()
/third_party/rust/crates/nix/src/
Dunistd.rs3056 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/
Dsafe.rs221 pub unsafe fn into_raw(self) -> imp::Symbol<T> { in into_raw() method
/third_party/rust/crates/cxx/macro/src/
Dexpand.rs533 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/
Dunique_ptr.rs90 pub fn into_raw(self) -> *mut T { in into_raw() function
/third_party/rust/crates/nix/src/mount/
Dbsd.rs242 let ptr = s.to_owned().into_raw() as *const u8; in push_nix_path()
/third_party/rust/crates/cxx/tests/
Dtest.rs313 Box::into_raw(Box::new(R(2020usize))) in cxx_test_suite_get_box()
/third_party/rust/crates/cxx/include/
Dcxx.h284 T *into_raw() noexcept;
818 T *Box<T>::into_raw() noexcept {
/third_party/rust/crates/os_str_bytes/src/
Draw_str.rs58 let value = Box::into_raw(self); in transmute_box()
/third_party/rust/crates/memchr/bench/data/code/
Drust-library.rs15550 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 …]