Enum rustc::traits::ObjectSafetyViolation
[−]
[src]
pub enum ObjectSafetyViolation {
SizedSelf,
SupertraitSelf,
Method(Name, MethodViolationCode),
}🔬 This is a nightly-only experimental API. (
rustc_private)Variants
SizedSelf🔬 This is a nightly-only experimental API. (
rustc_private)Self : Sized declared on the trait
SupertraitSelf🔬 This is a nightly-only experimental API. (
rustc_private)Supertrait reference references Self an in illegal location
(e.g. trait Foo : Bar<Self>)
Method(Name, MethodViolationCode)🔬 This is a nightly-only experimental API. (
rustc_private)Method has something illegal
Methods
impl ObjectSafetyViolation[src]
Trait Implementations
impl Clone for ObjectSafetyViolation[src]
fn clone(&self) -> ObjectSafetyViolation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for ObjectSafetyViolation[src]
impl PartialEq for ObjectSafetyViolation[src]
fn eq(&self, __arg_0: &ObjectSafetyViolation) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ObjectSafetyViolation) -> bool
This method tests for !=.
impl Eq for ObjectSafetyViolation[src]
impl Hash for ObjectSafetyViolation[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.