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

pub enum MethodViolationCode {
    StaticMethod,
    ReferencesSelf,
    Generic,
}
🔬 This is a nightly-only experimental API. (rustc_private)

Reasons a method might not be object-safe.

Variants

🔬 This is a nightly-only experimental API. (rustc_private)

e.g., fn foo()

🔬 This is a nightly-only experimental API. (rustc_private)

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

🔬 This is a nightly-only experimental API. (rustc_private)

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

Trait Implementations

impl Copy for MethodViolationCode
[src]

impl Clone for MethodViolationCode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MethodViolationCode
[src]

Formats the value using the given formatter.

impl PartialEq for MethodViolationCode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for MethodViolationCode
[src]

impl Hash for MethodViolationCode
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.