pub struct Trait {
pub name: Identifier,
pub generics: Vec<GenericParam>,
pub methods: Vec<Function>,
pub associated_types: Vec<AssociatedType>,
pub annotations: Vec<Attribute>,
pub span: Span,
}Expand description
A trait declaration
Fields§
§name: IdentifierThe trait name.
generics: Vec<GenericParam>Generic parameters for the trait.
methods: Vec<Function>Methods declared in the trait.
associated_types: Vec<AssociatedType>Associated types declared in the trait.
annotations: Vec<Attribute>Annotations applied to the trait.
span: SpanThe source code span.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trait
impl<'de> Deserialize<'de> for Trait
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Trait
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 UnsafeUnpin 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