Enum rustc::traits::ObjectSafetyViolation
[−]
[src]
pub enum ObjectSafetyViolation<'tcx> {
SizedSelf,
SupertraitSelf,
Method(Rc<Method<'tcx>>, MethodViolationCode),
}Unstable (
rustc_private)Variants
SizedSelfUnstable (
rustc_private)Self : Sized declared on the trait
SupertraitSelfUnstable (
rustc_private)Supertrait reference references Self an in illegal location
(e.g. trait Foo : Bar<Self>)
Method(Rc<Method<'tcx>>, MethodViolationCode)Unstable (
rustc_private)Method has something illegal
Trait Implementations
Derived Implementations
impl<'tcx> Hash for ObjectSafetyViolation<'tcx>[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.
impl<'tcx> Eq for ObjectSafetyViolation<'tcx>[src]
impl<'tcx> PartialEq for ObjectSafetyViolation<'tcx>[src]
fn eq(&self, __arg_0: &ObjectSafetyViolation<'tcx>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ObjectSafetyViolation<'tcx>) -> bool
This method tests for !=.
impl<'tcx> Debug for ObjectSafetyViolation<'tcx>[src]
impl<'tcx> Clone for ObjectSafetyViolation<'tcx>[src]
fn clone(&self) -> ObjectSafetyViolation<'tcx>
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