Enum numbat::resolver::CodeSource
source · pub enum CodeSource {
Text,
Internal,
File(PathBuf),
Module(ModulePath, Option<PathBuf>),
}
Variants§
Text
User input from the command line or a REPL
Internal
For internal use, e.g. when executing special statements (like “use prelude”) during startup.
File(PathBuf)
A file that has been read in
Module(ModulePath, Option<PathBuf>)
A module that has been imported
Trait Implementations§
source§impl Clone for CodeSource
impl Clone for CodeSource
source§fn clone(&self) -> CodeSource
fn clone(&self) -> CodeSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for CodeSource
impl Send for CodeSource
impl Sync for CodeSource
impl Unpin for CodeSource
impl UnwindSafe for CodeSource
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