Struct interpreter::package::ImplPackage
source · pub struct ImplPackage {
pub methods: MethodRes,
pub name: &'static [u8],
pub dyn_methods: DynMethodRes,
}Fields§
§methods: MethodRes§name: &'static [u8]§dyn_methods: DynMethodResImplementations§
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, doc: &'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 Freeze for ImplPackage
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