Trait ClassLike

Source
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§

Source

fn implements<T>(&mut self, ty: T)
where T: Into<ClassType>,

Source

fn push_annotation<A>(&mut self, annotation: A)
where A: Into<AnnotationSpec>,

Source

fn push_field<F>(&mut self, field: F)
where F: Into<FieldSpec>,

Source

fn fields(&self) -> &Vec<FieldSpec>

Source

fn push_constructor<C>(&mut self, constructor: C)

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.

Implementors§