Struct stable_mir::ty::TraitDecl
source · pub struct TraitDecl {
pub def_id: TraitDef,
pub unsafety: Safety,
pub paren_sugar: bool,
pub has_auto_impl: bool,
pub is_marker: bool,
pub is_coinductive: bool,
pub skip_array_during_method_dispatch: bool,
pub specialization_kind: TraitSpecializationKind,
pub must_implement_one_of: Option<Vec<Opaque>>,
pub implement_via_object: bool,
pub deny_explicit_impl: bool,
}
Fields§
§def_id: TraitDef
§unsafety: Safety
§paren_sugar: bool
§has_auto_impl: bool
§is_marker: bool
§is_coinductive: bool
§skip_array_during_method_dispatch: bool
§specialization_kind: TraitSpecializationKind
§must_implement_one_of: Option<Vec<Opaque>>
§implement_via_object: bool
§deny_explicit_impl: bool
Implementations§
source§impl TraitDecl
impl TraitDecl
pub fn generics_of(&self) -> Generics
pub fn predicates_of(&self) -> GenericPredicates
pub fn explicit_predicates_of(&self) -> GenericPredicates
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TraitDecl
impl Send for TraitDecl
impl Sync for TraitDecl
impl Unpin for TraitDecl
impl UnwindSafe for TraitDecl
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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: 48 bytes