Enum rustc::traits::ObjectSafetyViolation [] [src]

pub enum ObjectSafetyViolation {
    SizedSelf,
    SupertraitSelf,
    Method(NameMethodViolationCode),
}
🔬 This is a nightly-only experimental API. (rustc_private)

Variants

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

Self : Sized declared on the trait

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

Supertrait reference references Self an in illegal location (e.g. trait Foo : Bar<Self>)

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

Method has something illegal

Methods

impl ObjectSafetyViolation
[src]

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

Trait Implementations

impl Clone for ObjectSafetyViolation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ObjectSafetyViolation
[src]

Formats the value using the given formatter.

impl PartialEq for ObjectSafetyViolation
[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 ObjectSafetyViolation
[src]

impl Hash for ObjectSafetyViolation
[src]

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

Feeds a slice of this type into the state provided.