pub struct TraitDecl {
pub def_id: TraitDef,
pub safety: 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 skip_boxed_slice_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
§safety: Safety
§paren_sugar: bool
§has_auto_impl: bool
§is_marker: bool
§is_coinductive: bool
§skip_array_during_method_dispatch: bool
§skip_boxed_slice_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§
impl Eq for TraitDecl
impl StructuralPartialEq for TraitDecl
Auto Trait Implementations§
impl Freeze for TraitDecl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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