#[repr(C)]pub struct Class {
pub name: RString,
pub docs: DocBlock,
pub extends: Option<RString>,
pub implements: Vec<RString>,
pub properties: Vec<Property>,
pub methods: Vec<Method>,
pub constants: Vec<Constant>,
pub is_interface: bool,
}Expand description
Represents an exported class or interface.
Fields§
§name: RStringName of the class.
docs: DocBlockDocumentation comments for the class.
extends: Option<RString>Name of the class the exported class extends. Stubs render it fully qualified.
implements: Vec<RString>Names of the interfaces the exported class implements, or the parent interfaces of an exported interface. Stubs render them fully qualified.
properties: Vec<Property>Properties of the class.
methods: Vec<Method>Methods of the class.
constants: Vec<Constant>Constants of the class.
is_interface: boolWhether the export is an interface rather than a class.
Implementations§
Trait Implementations§
Source§impl From<ClassBuilder> for Class
impl From<ClassBuilder> for Class
Source§fn from(val: ClassBuilder) -> Self
fn from(val: ClassBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Send for Class
impl !Sync for Class
impl Freeze for Class
impl RefUnwindSafe 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