Struct red4ext_rs::ClassExportBuilder
source · pub struct ClassExportBuilder<C: 'static> { /* private fields */ }
Expand description
A builder for ClassExport
.
Implementations§
source§impl<C> ClassExportBuilder<C>
impl<C> ClassExportBuilder<C>
sourcepub const fn base(self, base: &'static str) -> Self
pub const fn base(self, base: &'static str) -> Self
Set the base class of the class to be exported.
This is set to IScriptable
by default.
sourcepub const fn methods(self, methods: &'static [MethodMetadata<C>]) -> Self
pub const fn methods(self, methods: &'static [MethodMetadata<C>]) -> Self
Set the methods of the class to be exported.
See the methods!
macro for a convenient way to define methods.
sourcepub const fn static_methods(
self,
static_methods: &'static [GlobalMetadata],
) -> Self
pub const fn static_methods( self, static_methods: &'static [GlobalMetadata], ) -> Self
Set the static methods of the class to be exported.
See the static_methods!
macro for a convenient way to define methods.
sourcepub const fn build(self) -> ClassExport<C>
pub const fn build(self) -> ClassExport<C>
Build the final ClassExport
instance.
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for ClassExportBuilder<C>
impl<C> RefUnwindSafe for ClassExportBuilder<C>
impl<C> Send for ClassExportBuilder<C>
impl<C> Sync for ClassExportBuilder<C>
impl<C> Unpin for ClassExportBuilder<C>
impl<C> UnwindSafe for ClassExportBuilder<C>
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