File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3328,10 +3328,11 @@ pub unsafe trait ObjectClassExt {
3328
3328
}
3329
3329
3330
3330
// rustdoc-stripper-ignore-next
3331
- /// Check if the object class has a property `property_name` of the given `type_`.
3331
+ /// Check if the object class has a property `property_name` of the given `type_`
3332
+ /// or a subtype of it.
3332
3333
fn has_property_with_type ( & self , property_name : & str , type_ : Type ) -> bool {
3333
3334
self . property_type ( property_name)
3334
- . is_some_and ( |ptype| ptype == type_)
3335
+ . is_some_and ( |ptype| ptype. is_a ( type_) )
3335
3336
}
3336
3337
3337
3338
// rustdoc-stripper-ignore-next
@@ -4274,10 +4275,11 @@ impl<T: IsA<Object> + IsInterface> Interface<T> {
4274
4275
}
4275
4276
4276
4277
// rustdoc-stripper-ignore-next
4277
- /// Check if the interface has a property `property_name` of the given `type_`.
4278
+ /// Check if the interface has a property `property_name` of the given `type_`
4279
+ /// or a subtype of it.
4278
4280
pub fn has_property_with_type ( & self , property_name : & str , type_ : Type ) -> bool {
4279
4281
self . property_type ( property_name)
4280
- . is_some_and ( |ptype| ptype == type_)
4282
+ . is_some_and ( |ptype| ptype. is_a ( type_) )
4281
4283
}
4282
4284
4283
4285
// rustdoc-stripper-ignore-next
You can’t perform that action at this time.
0 commit comments