check_method_safety_annotation

Function check_method_safety_annotation 

Source
pub fn check_method_safety_annotation(entity: &Entity<'_>) -> Option<SafetyMode>
Expand description

Check method safety annotation by reading source file comments This is needed when libclang’s get_comment() doesn’t capture the annotation for methods inside a class definition