pub struct Trait {
pub documentation: Option<Document>,
pub attributes: Vec<AttributeGroup>,
pub name: String,
pub usages: Vec<Usage>,
pub constants: Vec<ClassConstant>,
pub properties: Vec<Property>,
pub methods: Vec<Method>,
}Fieldsยง
ยงdocumentation: Option<Document>ยงattributes: Vec<AttributeGroup>ยงname: Stringยงusages: Vec<Usage>ยงconstants: Vec<ClassConstant>ยงproperties: Vec<Property>ยงmethods: Vec<Method>Implementationsยง
Sourceยงimpl Trait
impl Trait
pub fn new<T: ToString>(name: T) -> Self
pub fn document(self, documentation: Document) -> Self
pub fn attributes(self, attributes: AttributeGroup) -> Self
pub fn using<T: Into<Usage>>(self, usage: T) -> Self
pub fn constant<T: Into<ClassConstant>>(self, constant: T) -> Self
pub fn property(self, property: Property) -> Self
pub fn method(self, method: Method) -> Self
Trait Implementationsยง
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