Home
last modified time | relevance | path

Searched refs:RustSlice (Results 1 - 3 of 3) sorted by relevance

/third_party/rust/crates/cxx/src/
H A Drust_slice.rs9 pub struct RustSlice { structure names
13 impl RustSlice { impls
43 unsafe { mem::transmute::<NonNull<[()]>, RustSlice>(NonNull::new_unchecked(ptr)) }
47 let rust_slice = RustSlice { repr: self.repr };
48 let repr = unsafe { mem::transmute::<RustSlice, NonNull<[()]>>(rust_slice) };
53 let rust_slice = RustSlice { repr: self.repr };
54 let repr = unsafe { mem::transmute::<RustSlice, NonNull<[()]>>(rust_slice) };
62 const_assert_eq!(mem::size_of::<NonNull<[()]>>(), mem::size_of::<RustSlice>());
65 mem::align_of::<RustSlice>(),
H A Dlib.rs505 pub use crate::rust_slice::RustSlice;
/third_party/rust/crates/cxx/macro/src/
H A Dexpand.rs582 false => quote_spanned!(span=> ::cxx::private::RustSlice::from_ref(#var)), in expand_cxx_function_shim()
583 true => quote_spanned!(span=> ::cxx::private::RustSlice::from_mut(#var)), in expand_cxx_function_shim()
1081 false => Some(quote_spanned!(span=> ::cxx::private::RustSlice::from_ref)), in expand_rust_function_shim_impl()
1082 true => Some(quote_spanned!(span=> ::cxx::private::RustSlice::from_mut)), in expand_rust_function_shim_impl()
1813 let rust_slice = Ident::new("RustSlice", ty.bracket.span.join()); in expand_extern_type()

Completed in 4 milliseconds