pub fn mark_required(&mut self, path: &Path) -> io::Result<()> {
        if let Some(ref mut rubylib) = self.rubylib {
            rubylib.mark_required(path).or_else(|_| {
                self.memory
                    .mark_required(path)
                    .or_else(|_| self.native.mark_required(path))
            })
        } else {
            self.memory
                .mark_required(path)
                .or_else(|_| self.native.mark_required(path))
        }
    }
/// Mark a source at `path` as required on the interpreter.
///
/// This metadata is used by `Kernel#require` and friends to enforce that
/// Ruby sources are only loaded into the interpreter once to limit side
/// effects.
///
/// # Errors
///
/// If `path` does not exist, an [`io::Error`] with error kind
/// [`io::ErrorKind::NotFound`] is returned.
Mark a source at `path` as required on the interpreter.
This metadata is used by `Kernel#require` and friends to enforce that
Ruby sources are only loaded into the interpreter once to limit side
effects.
Mark a source at ` path ` as required on the interpreter . This metadata is used by ` Kernel#require ` and friends to enforce that Ruby sources are only loaded into the interpreter once to limit side effects .
pub fn mark_required(&mut self, path: &Path) -> io::Result<()> {
        if let Some(ref mut rubylib) = self.rubylib {
            rubylib.mark_required(path).or_else(|_| {
                self.memory
                    .mark_required(path)
                    .or_else(|_| self.native.mark_required(path))
            })
        } else {
            self.memory
                .mark_required(path)
                .or_else(|_| self.native.mark_required(path))
        }
    }
pub fn mark_required ( & mut self , path : & Path ) -> io :: Result < ( ) > { if let Some ( ref mut rubylib ) = self . rubylib { rubylib . mark_required ( path ) . or_else ( | _ | { self . memory . mark_required ( path ) . or_else ( | _ | self . native . mark_required ( path ) ) } ) } else { self . memory . mark_required ( path ) . or_else ( | _ | self . native . mark_required ( path ) ) } }
Mark a source at `path` as required on the interpreter.
Mark a source at ` path ` as required on the interpreter .
&mut self
path
&Path
errors
If `path` does not exist, an [`io::Error`] with error kind
[`io::ErrorKind::NotFound`] is returned.
If ` path ` does not exist an [ ` io :: Error ` ] with error kind [ ` io :: ErrorKind :: NotFound ` ] is returned .