pub fn with_config(stdio: bool) -> Result<Self, ContextError> {
        let mut this = Self::new();
        this.install(&crate::modules::any::module()?)?;
        this.install(&crate::modules::bytes::module()?)?;
        this.install(&crate::modules::char::module()?)?;
        this.install(&crate::modules::cmp::module()?)?;
        this.install(&crate::modules::collections::module()?)?;
        this.install(&crate::modules::core::module()?)?;
        this.install(&crate::modules::float::module()?)?;
        this.install(&crate::modules::fmt::module()?)?;
        this.install(&crate::modules::future::module()?)?;
        this.install(&crate::modules::generator::module()?)?;
        this.install(&crate::modules::int::module()?)?;
        this.install(&crate::modules::io::module(stdio)?)?;
        this.install(&crate::modules::iter::module()?)?;
        this.install(&crate::modules::mem::module()?)?;
        this.install(&crate::modules::object::module()?)?;
        this.install(&crate::modules::ops::module()?)?;
        this.install(&crate::modules::option::module()?)?;
        this.install(&crate::modules::result::module()?)?;
        this.install(&crate::modules::stream::module()?)?;
        this.install(&crate::modules::string::module()?)?;
        this.install(&crate::modules::vec::module()?)?;
        this.has_default_modules = true;
        Ok(this)
    }
/// Construct a default set of modules with the given configuration.
///
/// * `stdio` determines if we include I/O functions that interact with
///   stdout and stderr by default, like `dbg`, `print`, and `println`.
Construct a default set of modules with the given configuration.
Construct a default set of modules with the given configuration .
pub fn with_config(stdio: bool) -> Result<Self, ContextError> {
        let mut this = Self::new();
        this.install(&crate::modules::any::module()?)?;
        this.install(&crate::modules::bytes::module()?)?;
        this.install(&crate::modules::char::module()?)?;
        this.install(&crate::modules::cmp::module()?)?;
        this.install(&crate::modules::collections::module()?)?;
        this.install(&crate::modules::core::module()?)?;
        this.install(&crate::modules::float::module()?)?;
        this.install(&crate::modules::fmt::module()?)?;
        this.install(&crate::modules::future::module()?)?;
        this.install(&crate::modules::generator::module()?)?;
        this.install(&crate::modules::int::module()?)?;
        this.install(&crate::modules::io::module(stdio)?)?;
        this.install(&crate::modules::iter::module()?)?;
        this.install(&crate::modules::mem::module()?)?;
        this.install(&crate::modules::object::module()?)?;
        this.install(&crate::modules::ops::module()?)?;
        this.install(&crate::modules::option::module()?)?;
        this.install(&crate::modules::result::module()?)?;
        this.install(&crate::modules::stream::module()?)?;
        this.install(&crate::modules::string::module()?)?;
        this.install(&crate::modules::vec::module()?)?;
        this.has_default_modules = true;
        Ok(this)
    }
pub fn with_config ( stdio : bool ) -> Result < Self , ContextError > { let mut this = Self :: new ( ) ; this . install ( & crate :: modules :: any :: module ( ) ? ) ? ; this . install ( & crate :: modules :: bytes :: module ( ) ? ) ? ; this . install ( & crate :: modules :: char :: module ( ) ? ) ? ; this . install ( & crate :: modules :: cmp :: module ( ) ? ) ? ; this . install ( & crate :: modules :: collections :: module ( ) ? ) ? ; this . install ( & crate :: modules :: core :: module ( ) ? ) ? ; this . install ( & crate :: modules :: float :: module ( ) ? ) ? ; this . install ( & crate :: modules :: fmt :: module ( ) ? ) ? ; this . install ( & crate :: modules :: future :: module ( ) ? ) ? ; this . install ( & crate :: modules :: generator :: module ( ) ? ) ? ; this . install ( & crate :: modules :: int :: module ( ) ? ) ? ; this . install ( & crate :: modules :: io :: module ( stdio ) ? ) ? ; this . install ( & crate :: modules :: iter :: module ( ) ? ) ? ; this . install ( & crate :: modules :: mem :: module ( ) ? ) ? ; this . install ( & crate :: modules :: object :: module ( ) ? ) ? ; this . install ( & crate :: modules :: ops :: module ( ) ? ) ? ; this . install ( & crate :: modules :: option :: module ( ) ? ) ? ; this . install ( & crate :: modules :: result :: module ( ) ? ) ? ; this . install ( & crate :: modules :: stream :: module ( ) ? ) ? ; this . install ( & crate :: modules :: string :: module ( ) ? ) ? ; this . install ( & crate :: modules :: vec :: module ( ) ? ) ? ; this . has_default_modules = true ; Ok ( this ) }
Construct a default set of modules with the given configuration.
Construct a default set of modules with the given configuration .
stdio
bool
stdio
bool