pub enum ProgramSource {
File {
path: String,
},
Inline {
source: String,
filename: String,
},
Bytes {
data: Vec<u8>,
filename: String,
},
CaptureBindings {
source: String,
names: Vec<String>,
filename: String,
},
}Expand description
What to execute.
Variants§
File
Source file on disk.
Inline
Inline source text.
Bytes
Precompiled bytes (e.g. WASM module).
CaptureBindings
Capture named bindings after evaluating a prelude snippet.
Trait Implementations§
Source§impl Clone for ProgramSource
impl Clone for ProgramSource
Source§impl Debug for ProgramSource
impl Debug for ProgramSource
Source§impl<'de> Deserialize<'de> for ProgramSource
impl<'de> Deserialize<'de> for ProgramSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProgramSource
impl RefUnwindSafe for ProgramSource
impl Send for ProgramSource
impl Sync for ProgramSource
impl Unpin for ProgramSource
impl UnsafeUnpin for ProgramSource
impl UnwindSafe for ProgramSource
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