Struct intuicio_core::types::enum_type::NativeEnumBuilder
source · pub struct NativeEnumBuilder { /* private fields */ }
Implementations§
source§impl NativeEnumBuilder
impl NativeEnumBuilder
pub fn new<T: Initialize + Finalize + 'static>() -> Self
pub fn new_named<T: Initialize + Finalize + 'static>( name: impl ToString ) -> Self
pub fn new_uninitialized<T: Finalize + 'static>() -> Self
pub fn new_named_uninitialized<T: Finalize + 'static>( name: impl ToString ) -> Self
pub fn meta(self, meta: Meta) -> Self
pub fn module_name(self, module_name: impl ToString) -> Self
pub fn visibility(self, visibility: Visibility) -> Self
pub fn variant(self, variant: EnumVariant, discriminant: u8) -> Self
pub fn set_default_variant(self, discriminant: u8) -> Self
sourcepub unsafe fn override_send(self, mode: bool) -> Self
pub unsafe fn override_send(self, mode: bool) -> Self
§Safety
sourcepub unsafe fn override_sync(self, mode: bool) -> Self
pub unsafe fn override_sync(self, mode: bool) -> Self
§Safety
sourcepub unsafe fn override_copy(self, mode: bool) -> Self
pub unsafe fn override_copy(self, mode: bool) -> Self
§Safety
pub fn build(self) -> Enum
Trait Implementations§
source§impl Debug for NativeEnumBuilder
impl Debug for NativeEnumBuilder
Auto Trait Implementations§
impl Freeze for NativeEnumBuilder
impl RefUnwindSafe for NativeEnumBuilder
impl Send for NativeEnumBuilder
impl Sync for NativeEnumBuilder
impl Unpin for NativeEnumBuilder
impl UnwindSafe for NativeEnumBuilder
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