pub struct Trait {
pub visibility: Visibility,
pub name: Ident,
pub generics: GenericParams,
pub items: Vec<TraitItem>,
pub where_clause: WhereClause,
pub span: Span,
}Expand description
Trait definition
Fields§
§visibility: Visibility§name: Ident§generics: GenericParams§items: Vec<TraitItem>§where_clause: WhereClause§span: SpanTrait Implementations§
impl StructuralPartialEq for Trait
Auto Trait Implementations§
impl Freeze for Trait
impl RefUnwindSafe for Trait
impl Send for Trait
impl Sync for Trait
impl Unpin for Trait
impl UnwindSafe for Trait
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