Enum rustc_trait_selection::traits::ObjectSafetyViolation [−][src]
pub enum ObjectSafetyViolation {
SizedSelf(SmallVec<[Span; 1]>),
SupertraitSelf(SmallVec<[Span; 1]>),
Method(Symbol, MethodViolationCode, Span),
AssocConst(Symbol, Span),
GAT(Symbol, Span),
}
Variants
Self: Sized
declared on the trait.
Supertrait reference references Self
an in illegal location
(e.g., trait Foo : Bar<Self>
).
Method(Symbol, MethodViolationCode, Span)
Method has something illegal.
Tuple Fields of Method
Associated const.
GAT
Auto Trait Implementations
impl RefUnwindSafe for ObjectSafetyViolation
impl !Send for ObjectSafetyViolation
impl !Sync for ObjectSafetyViolation
impl Unpin for ObjectSafetyViolation
impl UnwindSafe for ObjectSafetyViolation
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes
Size for each variant:
SizedSelf
: 28 bytesSupertraitSelf
: 28 bytesMethod
: 52 bytesAssocConst
: 12 bytesGAT
: 12 bytes