Skip to main content

class_is_subclass_of

Function class_is_subclass_of 

Source
pub fn class_is_subclass_of(
    cx: &mut Cx,
    child: &dyn Class,
    expected: ClassRef,
) -> Result<bool>
Expand description

Walk the parent chain of child to test whether it is a subclass of expected, returning false when either side is not a class object.