Struct ryan::environment::EnvironmentBuilder
source · pub struct EnvironmentBuilder { /* private fields */ }
Expand description
A builder for Environment
s. Use Environment::builder
to create a new builder.
Implementations§
source§impl EnvironmentBuilder
impl EnvironmentBuilder
sourcepub fn build(self) -> Environment
pub fn build(self) -> Environment
Builds the environment with the supplied configurations.
sourcepub fn module<F>(self, module: F) -> Selfwhere
F: AsRef<str>,
pub fn module<F>(self, module: F) -> Selfwhere F: AsRef<str>,
Sets the current module name for the environment.
sourcepub fn import_loader<L>(self, import_loader: L) -> Selfwhere
L: 'static + ImportLoader,
pub fn import_loader<L>(self, import_loader: L) -> Selfwhere L: 'static + ImportLoader,
The the import loader for the environment.
Auto Trait Implementations§
impl !RefUnwindSafe for EnvironmentBuilder
impl !Send for EnvironmentBuilder
impl !Sync for EnvironmentBuilder
impl Unpin for EnvironmentBuilder
impl !UnwindSafe for EnvironmentBuilder
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