pub enum ProgramOrigin {
File(String),
Source,
Bytecode,
}Expand description
Origin of a compiled program.
Variants§
File(String)
Loaded from a file (path stored)
Source
Compiled from source string
Bytecode
Deserialized from bytecode bytes
Trait Implementations§
Source§impl Clone for ProgramOrigin
impl Clone for ProgramOrigin
Source§fn clone(&self) -> ProgramOrigin
fn clone(&self) -> ProgramOrigin
Returns a duplicate 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 Freeze for ProgramOrigin
impl RefUnwindSafe for ProgramOrigin
impl Send for ProgramOrigin
impl Sync for ProgramOrigin
impl Unpin for ProgramOrigin
impl UnwindSafe for ProgramOrigin
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