Enum rustc::middle::traits::MethodViolationCode [−] [src]

pub enum MethodViolationCode {
    StaticMethod,
    ReferencesSelf,
    Generic,
}
Unstable

Reasons a method might not be object-safe.

Variants

StaticMethod
Unstable

e.g., fn foo()

ReferencesSelf
Unstable

e.g., fn foo(&self, x: Self) or fn foo(&self) -> Self

Generic
Unstable

e.g., fn foo<A>()

Trait Implementations

Derived Implementations

impl Debug for MethodViolationCode

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for MethodViolationCode

fn clone(&self) -> MethodViolationCode

fn clone_from(&mut self, source: &Self)

impl Copy for MethodViolationCode