pub struct TraitUnit {
pub name: String,
pub attributes: Vec<String>,
pub visibility: Visibility,
pub documentation: Option<String>,
pub methods: Vec<FunctionUnit>,
pub source: Option<String>,
}Expand description
Represents a trait or interface in the code
Fields§
§name: StringThe name of the trait
attributes: Vec<String>Attributes applied to the struct
visibility: VisibilityThe visibility of the trait
documentation: Option<String>The documentation for the trait
methods: Vec<FunctionUnit>The methods declared in the trait
source: Option<String>The source code of the trait
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TraitUnit
impl RefUnwindSafe for TraitUnit
impl Send for TraitUnit
impl Sync for TraitUnit
impl Unpin for TraitUnit
impl UnwindSafe for TraitUnit
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