pub struct Class {
pub documentation: Option<Document>,
pub attributes: Vec<AttributeGroup>,
pub modifiers: Vec<Modifier>,
pub name: String,
pub extends: Option<String>,
pub implements: Vec<String>,
pub usages: Vec<Usage>,
pub constants: Vec<ClassConstant>,
pub properties: Vec<Property>,
pub methods: Vec<Method>,
}Fieldsยง
ยงdocumentation: Option<Document>ยงattributes: Vec<AttributeGroup>ยงmodifiers: Vec<Modifier>ยงname: Stringยงextends: Option<String>ยงimplements: Vec<String>ยงusages: Vec<Usage>ยงconstants: Vec<ClassConstant>ยงproperties: Vec<Property>ยงmethods: Vec<Method>Implementationsยง
Sourceยงimpl Class
impl Class
pub fn new<T: ToString>(name: T) -> Self
pub fn document(self, documentation: Document) -> Self
pub fn attributes(self, attributes: AttributeGroup) -> Self
pub fn modifier(self, modifier: Modifier) -> Self
pub fn extends<T: ToString>(self, extends: T) -> Self
pub fn implements<T: ToString>(self, implements: T) -> 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 Class
impl !RefUnwindSafe for Class
impl !Send for Class
impl !Sync for Class
impl Unpin for Class
impl !UnwindSafe for Class
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