pub struct ClassDef {
pub name: &'static str,
pub doc: &'static str,
pub type_id: fn() -> TypeId,
pub type_name: fn() -> &'static str,
pub members: &'static [Member],
pub interface: bool,
}Expand description
What a class is: its name and members (#[class] writes it).
Fields§
§name: &'static strIts JS name: the type’s own (Tally).
doc: &'static strDocumentation (the struct’s doc comment).
type_id: fn() -> TypeIdThe type, telling two classes of the same name apart.
type_name: fn() -> &'static strThe type’s Rust path, for messages (app::ledger::Ledger).
members: &'static [Member]Its members: the constructor, methods, accessors and statics.
interface: boolIts objects come from members only and its module exports no value
of it: declared as an interface (#[class(interface)]: fs’s
Stats).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for ClassDef
impl Freeze for ClassDef
impl Move for ClassDef
impl RefUnwindSafe for ClassDef
impl Send for ClassDef
impl Sync for ClassDef
impl Unpin for ClassDef
impl UnsafeUnpin for ClassDef
impl UnwindSafe for ClassDef
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