Home
last modified time | relevance | path

Searched refs:RustSlice (Results 1 – 4 of 4) sorted by relevance

/external/rust/cxx/src/
Drust_slice.rs6 pub struct RustSlice { struct
10 impl RustSlice { argument
13 RustSlice { in from_ref()
20 RustSlice { in from_mut()
39 mem::size_of::<Option<RustSlice>>(),
40 mem::size_of::<RustSlice>(),
Dlib.rs457 pub use crate::rust_slice::RustSlice;
/external/rust/cxx/src/symbols/
Drust_slice.rs1 use crate::rust_slice::RustSlice;
6 unsafe extern "C" fn slice_new(this: &mut MaybeUninit<RustSlice>, ptr: *const (), len: usize) { in slice_new() argument
8 let rust_slice = RustSlice { in slice_new()
15 unsafe extern "C" fn slice_ptr(this: &RustSlice) -> *const () { in slice_ptr()
20 unsafe extern "C" fn slice_len(this: &RustSlice) -> usize { in slice_len()
/external/rust/cxx/macro/src/
Dexpand.rs532 false => quote!(::cxx::private::RustSlice::from_ref(#var)), in expand_cxx_function_shim()
533 true => quote!(::cxx::private::RustSlice::from_mut(#var)), in expand_cxx_function_shim()
980 false => Some(quote!(::cxx::private::RustSlice::from_ref)), in expand_rust_function_shim_impl()
981 true => Some(quote!(::cxx::private::RustSlice::from_mut)), in expand_rust_function_shim_impl()
1635 Type::SliceRef(_) => quote!(::cxx::private::RustSlice), in expand_extern_type()