pub struct UnionBuilder { /* private fields */ }Expand description
Builder fuer Union-Typen.
Implementations§
Source§impl UnionBuilder
impl UnionBuilder
Sourcepub fn extensibility(self, ext: Extensibility) -> Self
pub fn extensibility(self, ext: Extensibility) -> Self
Setzt die Extensibility (default Appendable).
Sourcepub fn case(
self,
name: impl Into<String>,
ty: TypeIdentifier,
labels: Vec<i32>,
) -> Self
pub fn case( self, name: impl Into<String>, ty: TypeIdentifier, labels: Vec<i32>, ) -> Self
Fuegt einen Case-Member hinzu.
Sourcepub fn default_case(self, name: impl Into<String>, ty: TypeIdentifier) -> Self
pub fn default_case(self, name: impl Into<String>, ty: TypeIdentifier) -> Self
Fuegt den Default-Case hinzu.
Sourcepub fn build_minimal(&self) -> MinimalUnionType
pub fn build_minimal(&self) -> MinimalUnionType
Baut MinimalUnionType.
Sourcepub fn build_complete(&self) -> CompleteUnionType
pub fn build_complete(&self) -> CompleteUnionType
Baut CompleteUnionType.
Auto Trait Implementations§
impl Freeze for UnionBuilder
impl RefUnwindSafe for UnionBuilder
impl Send for UnionBuilder
impl Sync for UnionBuilder
impl Unpin for UnionBuilder
impl UnsafeUnpin for UnionBuilder
impl UnwindSafe for UnionBuilder
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