fn object_safety_violation_for_method(self,
                                          trait_def_id: DefId,
                                          method: &ty::AssociatedItem)
                                          -> Option<MethodViolationCode>
    {
        // Any method that has a `Self : Sized` requisite is otherwise
        // exempt from the regulations.
        if self.generics_require_sized_self(method.def_id) {
            return None;
        }

        self.virtual_call_violation_for_method(trait_def_id, method)
    }
/// Returns `Some(_)` if this method makes the containing trait not object safe.
Returns `Some(_)` if this method makes the containing trait not object safe.
Returns ` Some ( _ ) ` if this method makes the containing trait not object safe .
fn object_safety_violation_for_method(self,
                                          trait_def_id: DefId,
                                          method: &ty::AssociatedItem)
                                          -> Option<MethodViolationCode>
    {
        // Any method that has a `Self : Sized` requisite is otherwise
        // exempt from the regulations.
        if self.generics_require_sized_self(method.def_id) {
            return None;
        }
        self.virtual_call_violation_for_method(trait_def_id, method)
    }
fn object_safety_violation_for_method ( self , trait_def_id : DefId , method : & ty :: AssociatedItem ) -> Option < MethodViolationCode > { // Any method that has a `Self : Sized` requisite is otherwise // exempt from the regulations. if self . generics_require_sized_self ( method . def_id ) { return None ; } self . virtual_call_violation_for_method ( trait_def_id , method ) }
Returns `Some(_)` if this method makes the containing trait not object safe.
Returns ` Some ( _ ) ` if this method makes the containing trait not object safe .
self
trait_def_id
DefId
method
&ty::AssociatedItem
self
trait_def_id
DefId
method
&ty::AssociatedItem