pub struct TraitDecl {
pub name: Ident,
pub methods: Vec<TraitMethod>,
pub span: Span,
}Expand description
A trait: a set of method signatures a type conforms to explicitly.
Conformance is only ever declared by an impl Trait for Type block; there
is no structural conformance and no blanket implementation.
Fields§
§name: Ident§methods: Vec<TraitMethod>§span: SpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for TraitDecl
impl RefUnwindSafe for TraitDecl
impl Send for TraitDecl
impl Sync for TraitDecl
impl Unpin for TraitDecl
impl UnsafeUnpin 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