#[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>,
}
Expand description
Represents an exported class.
Fields§
§name: RString
Name of the class.
docs: DocBlock
Documentation comments for the class.
extends: Option<RString>
Name of the class the exported class extends. (Not implemented #326)
implements: Vec<RString>
Names of the interfaces the exported class implements. (Not implemented #326)
properties: Vec<Property>
Properties of the class.
methods: Vec<Method>
Methods of the class.
constants: Vec<Constant>
Constants of the class.
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 Freeze for Class
impl RefUnwindSafe for Class
impl !Send for Class
impl !Sync for Class
impl Unpin 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