pub trait ClassLike {
// Required methods
fn implements<T>(&mut self, ty: T)
where T: Into<ClassType>;
fn push_annotation<A>(&mut self, annotation: A)
where A: Into<AnnotationSpec>;
fn push_field<F>(&mut self, field: F)
where F: Into<FieldSpec>;
fn fields(&self) -> &Vec<FieldSpec>;
fn push_constructor<C>(&mut self, constructor: C)
where C: Into<ConstructorSpec>;
}
Required Methods§
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>,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.