pub struct FSharpModuleBuilder { /* private fields */ }Expand description
Fluent builder for constructing FSharpModule objects.
Implementations§
Source§impl FSharpModuleBuilder
impl FSharpModuleBuilder
Sourcepub fn record(self, rec: FSharpRecord) -> Self
pub fn record(self, rec: FSharpRecord) -> Self
Add a record type.
Sourcepub fn union(self, u: FSharpUnion) -> Self
pub fn union(self, u: FSharpUnion) -> Self
Add a discriminated union.
Sourcepub fn function(self, f: FSharpFunction) -> Self
pub fn function(self, f: FSharpFunction) -> Self
Add a function.
Sourcepub fn build(self) -> FSharpModule
pub fn build(self) -> FSharpModule
Finalise and return the module.
Auto Trait Implementations§
impl Freeze for FSharpModuleBuilder
impl RefUnwindSafe for FSharpModuleBuilder
impl Send for FSharpModuleBuilder
impl Sync for FSharpModuleBuilder
impl Unpin for FSharpModuleBuilder
impl UnsafeUnpin for FSharpModuleBuilder
impl UnwindSafe for FSharpModuleBuilder
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