Home
last modified time | relevance | path

Searched refs:SliceRef (Results 1 – 11 of 11) sorted by relevance

/third_party/rust/crates/cxx/syntax/
Dimpls.rs2 Array, ExternFn, Include, Lifetimes, Ptr, Receiver, Ref, Signature, SliceRef, Ty1, Type, Var,
57 Type::SliceRef(t) => t.hash(state), in hash()
79 (Type::SliceRef(lhs), Type::SliceRef(rhs)) => lhs == rhs, in eq()
231 impl Eq for SliceRef {} implementation
233 impl PartialEq for SliceRef { implementation
235 let SliceRef { in eq() localVariable
243 let SliceRef { in eq() localVariable
255 impl Hash for SliceRef { implementation
257 let SliceRef { in hash() localVariable
Dtokens.rs4 Ref, Signature, SliceRef, Struct, Ty1, Type, TypeAlias, Var,
37 Type::SliceRef(r) => r.to_tokens(tokens), in to_tokens()
128 impl ToTokens for SliceRef { implementation
130 let SliceRef { in to_tokens() localVariable
Dmod.rs239 SliceRef(Box<SliceRef>), enumerator
268 pub struct SliceRef { struct
Dcheck.rs6 NamedType, Ptr, Receiver, Ref, Signature, SliceRef, Struct, Trait, Ty1, Type, TypeAlias, Types,
58 Type::SliceRef(ty) => check_type_slice_ref(cx, ty), in do_typecheck()
265 fn check_type_slice_ref(cx: &mut Check, ty: &SliceRef) { in check_type_slice_ref() argument
543 Some(Type::SliceRef(slice)) if slice.mutable => {} in check_mut_return_restriction()
569 Type::SliceRef(slice) => slice.mutable, in check_mut_return_restriction()
653 | Type::SliceRef(_) => false, in is_unsized()
728 Type::SliceRef(_) => "slice".to_owned(), in describe()
Dimproper.rs30 | Type::SliceRef(_) => Definite(true), in determine_improper_ctype()
Dvisit.rs24 Type::SliceRef(s) => visitor.visit_type(&s.inner), in visit_type()
Dpod.rs32 Type::Ref(_) | Type::Str(_) | Type::Fn(_) | Type::SliceRef(_) | Type::Ptr(_) => true, in is_guaranteed_pod()
Dtrivial.rs109 Type::SliceRef(ty) => { in required_trivial_reasons()
Dparse.rs10 Signature, SliceRef, Struct, Ty1, Type, TypeAlias, Var, Variant,
1082 | Type::SliceRef(_) in parse_impl()
1168 return Ok(Type::SliceRef(Box::new(SliceRef { in parse_type_reference()
/third_party/rust/crates/cxx/gen/src/
Dwrite.rs223 Type::SliceRef(_) => out.builtin.rust_slice = true, in pick_includes_and_builtins()
807 Some(ty @ Type::SliceRef(_)) if !indirect_return => { in write_cxx_function_shim()
851 Some(Type::Str(_)) | Some(Type::SliceRef(_)) if !indirect_return => write!(out, ")"), in write_cxx_function_shim()
1067 Type::SliceRef(_) => { in write_rust_function_shim_impl()
1118 if let Type::RustBox(_) | Type::UniquePtr(_) | Type::Str(_) | Type::SliceRef(_) = ret { in write_rust_function_shim_impl()
1178 Type::Str(_) | Type::SliceRef(_) => write!(out, " "), in write_indirect_return_type_space()
1196 Some(Type::Str(_)) | Some(Type::SliceRef(_)) => { in write_extern_return_type_space()
1276 Type::SliceRef(slice) => { in write_type()
1344 | Type::SliceRef(_) in write_space_after_type()
/third_party/rust/crates/cxx/macro/src/
Dexpand.rs581 Type::SliceRef(ty) => match ty.mutable { in expand_cxx_function_shim()
706 Type::SliceRef(slice) => { in expand_cxx_function_shim()
1019 Type::SliceRef(slice) => { in expand_rust_function_shim_impl()
1080 Type::SliceRef(ty) => match ty.mutable { in expand_rust_function_shim_impl()
1811 Type::SliceRef(ty) => { in expand_extern_type()