Struct interpreter::package::ImplPackage
source · pub struct ImplPackage {
pub methods: &'static [(&'static str, PackageCallback)],
pub name: &'static [u8],
pub dyn_methods: Vec<(&'static str, PackageCallback)>,
}Fields§
§methods: &'static [(&'static str, PackageCallback)]§name: &'static [u8]§dyn_methods: Vec<(&'static str, PackageCallback)>Implementations§
source§impl ImplPackage
impl ImplPackage
pub fn new() -> Self
pub fn set_name(self, name: &'static str) -> Self
pub fn add_method(self, name: &'static str, callback: PackageCallback) -> Self
Trait Implementations§
source§impl Default for ImplPackage
impl Default for ImplPackage
source§fn default() -> ImplPackage
fn default() -> ImplPackage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ImplPackage
impl Send for ImplPackage
impl Sync for ImplPackage
impl Unpin for ImplPackage
impl UnwindSafe for ImplPackage
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