Home
last modified time | relevance | path

Searched refs:Sized (Results 1 - 25 of 132) sorted by relevance

123456

/third_party/rust/crates/serde/serde/src/ser/
H A Dmod.rs131 (Error: Sized $(+ $($supertrait:ident)::+)*) => {
142 pub trait Error: Sized $(+ $($supertrait)::+)* {
186 declare_error_trait!(Error: Sized + StdError);
189 declare_error_trait!(Error: Sized + Debug + Display);
333 pub trait Serializer: Sized {
799 fn serialize_some<T: ?Sized>(self, value: &T) -> Result<Self::Ok, Self::Error> in serialize_some()
894 fn serialize_newtype_struct<T: ?Sized>( in serialize_newtype_struct()
928 fn serialize_newtype_variant<T: ?Sized>( in serialize_newtype_variant()
1349 fn collect_str<T: ?Sized>(self, value: &T) -> Result<Self::Ok, Self::Error> in collect_str()
1382 fn collect_str<T: ?Sized>(sel
[all...]
H A Dimpossible.rs75 fn serialize_element<T: ?Sized>(&mut self, value: &T) -> Result<(), Error> in serialize_element()
95 fn serialize_element<T: ?Sized>(&mut self, value: &T) -> Result<(), Error> in serialize_element()
115 fn serialize_field<T: ?Sized>(&mut self, value: &T) -> Result<(), Error> in serialize_field()
135 fn serialize_field<T: ?Sized>(&mut self, value: &T) -> Result<(), Error> in serialize_field()
155 fn serialize_key<T: ?Sized>(&mut self, key: &T) -> Result<(), Error> in serialize_key()
163 fn serialize_value<T: ?Sized>(&mut self, value: &T) -> Result<(), Error> in serialize_value()
183 fn serialize_field<T: ?Sized>(&mut self, key: &'static str, value: &T) -> Result<(), Error> in serialize_field()
204 fn serialize_field<T: ?Sized>(&mut self, key: &'static str, value: &T) -> Result<(), Error> in serialize_field()
/third_party/rust/crates/static-assertions-rs/tests/
H A Dtrait_impl.rs9 trait Tri<A: ?Sized, B: ?Sized, C: ?Sized> {}
11 impl<T, A: ?Sized, B: ?Sized, C: ?Sized> Tri<A, B, C> for T {}
/third_party/rust/crates/syn/src/gen/
H A Dvisit_mut.rs931 V: VisitMut + ?Sized, in visit_abi_mut()
945 V: VisitMut + ?Sized, in visit_angle_bracketed_generic_arguments_mut()
959 V: VisitMut + ?Sized, in visit_arm_mut()
977 V: VisitMut + ?Sized, in visit_assoc_const_mut()
990 V: VisitMut + ?Sized, in visit_assoc_type_mut()
1003 V: VisitMut + ?Sized, in visit_attr_style_mut()
1016 V: VisitMut + ?Sized, in visit_attribute_mut()
1027 V: VisitMut + ?Sized, in visit_bare_fn_arg_mut()
1042 V: VisitMut + ?Sized, in visit_bare_variadic_mut()
1058 V: VisitMut + ?Sized, in visit_bin_op_mut()
[all...]
H A Dvisit.rs930 V: Visit<'ast> + ?Sized, in visit_abi()
944 V: Visit<'ast> + ?Sized, in visit_angle_bracketed_generic_arguments()
958 V: Visit<'ast> + ?Sized, in visit_arm()
976 V: Visit<'ast> + ?Sized, in visit_assoc_const()
989 V: Visit<'ast> + ?Sized, in visit_assoc_type()
1002 V: Visit<'ast> + ?Sized, in visit_attr_style()
1015 V: Visit<'ast> + ?Sized, in visit_attribute()
1026 V: Visit<'ast> + ?Sized, in visit_bare_fn_arg()
1041 V: Visit<'ast> + ?Sized, in visit_bare_variadic()
1057 V: Visit<'ast> + ?Sized, in visit_bin_op()
[all...]
H A Dfold.rs934 F: Fold + ?Sized, in fold_abi()
948 F: Fold + ?Sized, in fold_angle_bracketed_generic_arguments()
961 F: Fold + ?Sized, in fold_arm()
976 F: Fold + ?Sized, in fold_assoc_const()
989 F: Fold + ?Sized, in fold_assoc_type()
1002 F: Fold + ?Sized, in fold_attr_style()
1013 F: Fold + ?Sized, in fold_attribute()
1026 F: Fold + ?Sized, in fold_bare_fn_arg()
1038 F: Fold + ?Sized, in fold_bare_variadic()
1051 F: Fold + ?Sized, in fold_bin_op()
[all...]
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
H A Dobjc_allowlist.rs12 pub trait PSomeProtocol: Sized + std::ops::Deref {
15 <Self as std::ops::Deref>::Target: objc::Message + Sized, in protocolMethod()
21 <Self as std::ops::Deref>::Target: objc::Message + Sized, in protocolClassMethod()
43 pub trait IAllowlistMe: Sized + std::ops::Deref {
46 <Self as std::ops::Deref>::Target: objc::Message + Sized, in method()
52 <Self as std::ops::Deref>::Target: objc::Message + Sized, in classMethod()
58 pub trait AllowlistMe_InterestingCategory: Sized + std::ops::Deref {}
H A Dobjc_class_method.rs28 pub trait IFoo: Sized + std::ops::Deref {
31 <Self as std::ops::Deref>::Target: objc::Message + Sized, in method()
37 <Self as std::ops::Deref>::Target: objc::Message + Sized, in methodWithInt_()
43 <Self as std::ops::Deref>::Target: objc::Message + Sized, in methodWithFoo_()
49 <Self as std::ops::Deref>::Target: objc::Message + Sized, in methodReturningInt()
55 <Self as std::ops::Deref>::Target: objc::Message + Sized, in methodReturningFoo()
64 <Self as std::ops::Deref>::Target: objc::Message + Sized, in methodWithArg1_andArg2_andArg3_()
H A Dobjc_method.rs28 pub trait IFoo: Sized + std::ops::Deref {
31 <Self as std::ops::Deref>::Target: objc::Message + Sized, in method()
37 <Self as std::ops::Deref>::Target: objc::Message + Sized, in methodWithInt_()
43 <Self as std::ops::Deref>::Target: objc::Message + Sized, in methodWithFoo_()
49 <Self as std::ops::Deref>::Target: objc::Message + Sized, in methodReturningInt()
55 <Self as std::ops::Deref>::Target: objc::Message + Sized, in methodReturningFoo()
65 <Self as std::ops::Deref>::Target: objc::Message + Sized, in methodWithArg1_andArg2_andArg3_()
77 <Self as std::ops::Deref>::Target: objc::Message + Sized, in methodWithAndWithoutKeywords_arg2Name__arg4Name_()
H A Dobjc_category.rs28 pub trait IFoo: Sized + std::ops::Deref {
31 <Self as std::ops::Deref>::Target: objc::Message + Sized, in method()
37 pub trait Foo_BarCategory: Sized + std::ops::Deref {
40 <Self as std::ops::Deref>::Target: objc::Message + Sized, in categoryMethod()
H A Dobjc_pointer_return_types.rs28 pub trait IBar: Sized + std::ops::Deref {}
45 pub trait IFoo: Sized + std::ops::Deref {
48 <Self as std::ops::Deref>::Target: objc::Message + Sized, in methodUsingBar_()
54 <Self as std::ops::Deref>::Target: objc::Message + Sized, in methodReturningBar()
H A Dobjc_blocklist.rs29 pub trait ISomeClass: Sized + std::ops::Deref {
32 <Self as std::ops::Deref>::Target: objc::Message + Sized, in ambiguouslyBlockedMethod()
38 <Self as std::ops::Deref>::Target: objc::Message + Sized, in instanceMethod()
H A Dobjc_method_clash.rs28 pub trait IFoo: Sized + std::ops::Deref {
31 <Self as std::ops::Deref>::Target: objc::Message + Sized, in foo()
37 <Self as std::ops::Deref>::Target: objc::Message + Sized, in class_foo()
H A Dobjc_property_fnptr.rs28 pub trait IFoo: Sized + std::ops::Deref {
39 <Self as std::ops::Deref>::Target: objc::Message + Sized, in func()
53 <Self as std::ops::Deref>::Target: objc::Message + Sized, in setFunc_()
/third_party/rust/crates/static-assertions-rs/src/
H A Dassert_impl.rs73 impl<T: ?Sized + $t> AmbiguousIfMoreThanOne<Token> for T {}
117 fn assert_impl_all<T: ?Sized $(+ $trait)+>() {} in assert_impl_all()
272 impl<T: ?Sized> AmbiguousIfImpl<()> for T {}
279 impl<T: ?Sized $(+ $t)+> AmbiguousIfImpl<Invalid> for T {}
338 impl<T: ?Sized> AmbiguousIfImpl<()> for T {}
347 impl<T: ?Sized + $t> AmbiguousIfImpl<Invalid> for T {}
H A Dassert_type.rs51 type This: ?Sized;
54 impl<T: ?Sized> TypeEq for T {
60 T: ?Sized + TypeEq<This = U>, in assert_type_eq_all()
61 U: ?Sized, in assert_type_eq_all()
/third_party/rust/crates/nix/src/mount/
H A Dlinux.rs61 P1: ?Sized + NixPath, in mount()
62 P2: ?Sized + NixPath, in mount()
63 P3: ?Sized + NixPath, in mount()
64 P4: ?Sized + NixPath, in mount()
74 P: ?Sized + NixPath, in mount()
102 pub fn umount<P: ?Sized + NixPath>(target: &P) -> Result<()> { in umount()
109 pub fn umount2<P: ?Sized + NixPath>(target: &P, flags: MntFlags) -> Result<()> { in umount2()
/third_party/rust/crates/syn/tests/
H A Dtest_item.rs190 let tokens = quote!(trait Trait: Sized where {}); in test_supertraits()
204 ident: "Sized", in test_supertraits()
214 let tokens = quote!(trait Trait: Sized + where {}); in test_supertraits()
228 ident: "Sized", in test_supertraits()
301 fn f() -> impl Sized + {} in test_impl_trait_trailing_plus()
317 ident: "Sized", in test_impl_trait_trailing_plus()
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-5/
H A Dobjc_template.rs28 pub trait IFoo<ObjectType: 'static>: Sized + std::ops::Deref {
31 <Self as std::ops::Deref>::Target: objc::Message + Sized, in get()
56 Sized + std::ops::Deref
60 <Self as std::ops::Deref>::Target: objc::Message + Sized, in objectForKey_()
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-9/
H A Dobjc_template.rs28 pub trait IFoo<ObjectType: 'static>: Sized + std::ops::Deref {
31 <Self as std::ops::Deref>::Target: objc::Message + Sized, in get()
56 Sized + std::ops::Deref
60 <Self as std::ops::Deref>::Target: objc::Message + Sized, in objectForKey_()
/third_party/rust/crates/nix/src/sys/
H A Dquota.rs240 fn quotactl<P: ?Sized + NixPath>( in quotactl()
260 pub fn quotactl_on<P: ?Sized + NixPath>( in quotactl_on()
279 pub fn quotactl_off<P: ?Sized + NixPath>( in quotactl_off()
294 pub fn quotactl_sync<P: ?Sized + NixPath>( in quotactl_sync()
307 pub fn quotactl_get<P: ?Sized + NixPath>( in quotactl_get()
323 pub fn quotactl_set<P: ?Sized + NixPath>( in quotactl_set()
H A Dstat.rs173 pub fn mknod<P: ?Sized + NixPath>( in mknod()
194 pub fn mknodat<P: ?Sized + NixPath>( in mknodat()
239 pub fn stat<P: ?Sized + NixPath>(path: &P) -> Result<FileStat> { in stat()
250 pub fn lstat<P: ?Sized + NixPath>(path: &P) -> Result<FileStat> { in lstat()
272 pub fn fstatat<P: ?Sized + NixPath>( in fstatat()
328 pub fn fchmodat<P: ?Sized + NixPath>( in fchmodat()
360 pub fn utimes<P: ?Sized + NixPath>( in utimes()
392 pub fn lutimes<P: ?Sized + NixPath>( in lutimes()
444 pub fn utimensat<P: ?Sized + NixPath>( in utimensat()
470 pub fn mkdirat<P: ?Sized
[all...]
/third_party/rust/crates/syn/src/
H A Ddrops.rs8 pub(crate) struct NoDrop<T: ?Sized>(ManuallyDrop<T>);
19 impl<T: ?Sized> Deref for NoDrop<T> {
26 impl<T: ?Sized> DerefMut for NoDrop<T> {
/third_party/rust/crates/rustix/src/path/
H A Darg.rs88 Self: Sized, in to_string_lossy()
123 Self: Sized, in into_with_c_str()
159 Self: Sized, in into_with_c_str()
197 Self: Sized, in into_with_c_str()
236 Self: Sized, in into_with_c_str()
274 Self: Sized, in into_with_c_str()
313 Self: Sized, in into_with_c_str()
352 Self: Sized, in into_with_c_str()
393 Self: Sized, in into_with_c_str()
432 Self: Sized, in into_with_c_str()
[all...]
/third_party/rust/crates/clap/src/util/
H A Dflat_map.rs42 pub fn contains_key<Q: ?Sized>(&self, key: &Q) -> bool in contains_key()
55 pub fn remove<Q: ?Sized>(&mut self, key: &Q) -> Option<V> in remove()
63 pub fn remove_entry<Q: ?Sized>(&mut self, key: &Q) -> Option<(K, V)> in remove_entry()
91 pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V> in get()
104 pub fn get_mut<Q: ?Sized>(&mut self, k: &Q) -> Option<&mut V> in get_mut()

Completed in 25 milliseconds

123456