pub struct Class { /* private fields */ }
Implementations§
Source§impl Class
impl Class
pub fn new(name: &str, attributions: Vec<VariableDeclaration>) -> Self
pub fn get_attributions(&self) -> &Vec<VariableDeclaration>
pub fn get_name(&self) -> String
pub fn get_static_function(&self, name: &str) -> Option<Function>
pub fn register_method(&mut self, name: String, method: Function)
pub fn register_static_method(&mut self, name: String, method: Function)
Trait Implementations§
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