pub struct ClassSpec {
pub modifiers: Modifiers,
pub name: String,
pub annotations: Vec<AnnotationSpec>,
pub fields: Vec<FieldSpec>,
pub constructors: Vec<ConstructorSpec>,
pub elements: Elements,
pub extends: Option<ClassType>,
pub implements: Vec<ClassType>,
}Fields§
§modifiers: Modifiers§name: String§annotations: Vec<AnnotationSpec>§fields: Vec<FieldSpec>§constructors: Vec<ConstructorSpec>§elements: Elements§extends: Option<ClassType>§implements: Vec<ClassType>Implementations§
Trait Implementations§
Source§impl ClassLike for ClassSpec
impl ClassLike for ClassSpec
fn implements<T>(&mut self, ty: T)
fn push_annotation<A>(&mut self, annotation: A)where
A: Into<AnnotationSpec>,
fn push_field<F>(&mut self, field: F)
fn fields(&self) -> &Vec<FieldSpec>
fn push_constructor<C>(&mut self, constructor: C)where
C: Into<ConstructorSpec>,
Source§impl ContainerSpec for ClassSpec
impl ContainerSpec for ClassSpec
Auto Trait Implementations§
impl Freeze for ClassSpec
impl RefUnwindSafe for ClassSpec
impl Send for ClassSpec
impl Sync for ClassSpec
impl Unpin for ClassSpec
impl UnwindSafe for ClassSpec
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