pub struct Class {
pub doc: Doc,
pub decorators: Vec<Decorator>,
pub name: Ident,
pub bases: Vec<Type>,
pub body: Vec<Statement>,
}Expand description
class Name(bases): ...
Fields§
§doc: DocThe docstring, written as the first statement of the body.
decorators: Vec<Decorator>Decorators, in written order, outermost first.
name: IdentThe name.
bases: Vec<Type>Base classes, in written order.
No class keywords beside them: metaclass= and boundary= have
no part in a type declaration, and a field nothing sets would be
a renderer arm nothing reviews.
body: Vec<Statement>The body, in written order.
Trait Implementations§
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnsafeUnpin 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