pub fn into_with_std_lib(self) -> TypeResult<Self> {
        let python_dir = resource("std");
        let (py_types, py_fields, py_functions) = python_files(&python_dir)?;

        let types = self.classes.union(&py_types).cloned().collect();
        let functions = self.functions.union(&py_functions).cloned().collect();
        let fields = self.fields.union(&py_fields).cloned().collect();
        Ok(Context { classes: types, functions, fields })
    }
/// Loads pre-defined Python standard library into Context.
Loads pre-defined Python standard library into Context.
Loads pre - defined Python standard library into Context .
pub fn into_with_std_lib(self) -> TypeResult<Self> {
        let python_dir = resource("std");
        let (py_types, py_fields, py_functions) = python_files(&python_dir)?;
        let types = self.classes.union(&py_types).cloned().collect();
        let functions = self.functions.union(&py_functions).cloned().collect();
        let fields = self.fields.union(&py_fields).cloned().collect();
        Ok(Context { classes: types, functions, fields })
    }
pub fn into_with_std_lib ( self ) -> TypeResult < Self > { let python_dir = resource ( " " ) ; let ( py_types , py_fields , py_functions ) = python_files ( & python_dir ) ? ; let types = self . classes . union ( & py_types ) . cloned ( ) . collect ( ) ; let functions = self . functions . union ( & py_functions ) . cloned ( ) . collect ( ) ; let fields = self . fields . union ( & py_fields ) . cloned ( ) . collect ( ) ; Ok ( Context { classes : types , functions , fields } ) }
Loads pre-defined Python standard library into Context.
Loads pre - defined Python standard library into Context .
self