pub struct EmbeddedBuilder { /* private fields */ }Implementations§
Source§impl EmbeddedBuilder
impl EmbeddedBuilder
pub fn new() -> Self
pub fn with_base_dir(self, base_dir: impl Into<PathBuf>) -> Self
pub fn set_base_dir(self, base_dir: impl Into<PathBuf>) -> Self
pub fn module( self, module_path: impl Into<String>, source: impl Into<String>, ) -> Self
pub fn enable_stdlib_module<S: AsRef<str>>(self, module: S) -> Self
pub fn add_stdlib_module<S: AsRef<str>>(self, module: S) -> Self
pub fn declare_struct(self, def: StructDef) -> Self
pub fn declare_enum(self, def: EnumDef) -> Self
pub fn declare_trait(self, def: TraitDef) -> Self
pub fn declare_impl(self, impl_block: ImplBlock) -> Self
pub fn declare_function(self, func: FunctionDef) -> Self
pub fn with_extern_registry(self, registry: ExternRegistry) -> Self
pub fn extern_registry_mut(&mut self) -> &mut ExternRegistry
pub fn with_config(self, config: LustConfig) -> Self
pub fn set_config(self, config: LustConfig) -> Self
pub fn add_module( &mut self, module_path: impl Into<String>, source: impl Into<String>, ) -> &mut Self
pub fn entry_module(self, module_path: impl Into<String>) -> Self
pub fn set_entry_module(&mut self, module_path: impl Into<String>) -> &mut Self
pub fn compile(self) -> Result<EmbeddedProgram>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmbeddedBuilder
impl RefUnwindSafe for EmbeddedBuilder
impl Send for EmbeddedBuilder
impl Sync for EmbeddedBuilder
impl Unpin for EmbeddedBuilder
impl UnsafeUnpin for EmbeddedBuilder
impl UnwindSafe for EmbeddedBuilder
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