pub struct Class {
pub doc: Doc,
pub annotations: Vec<Annotation>,
pub modifiers: Vec<Modifier>,
pub name: Ident,
pub generics: Vec<TypeParam>,
pub extends: Option<Type>,
pub implements: Vec<Type>,
pub members: Vec<Member>,
}Expand description
class Name<T> extends B implements I { ... }
Fields§
§doc: DocDocumentation.
annotations: Vec<Annotation>Annotations, in written order.
modifiers: Vec<Modifier>Modifiers, in written order.
name: IdentName.
generics: Vec<TypeParam>Type parameters.
extends: Option<Type>The superclass.
implements: Vec<Type>Interfaces implemented.
members: Vec<Member>Members, 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