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