pub struct VmClosure {
pub func: CompiledFunction,
pub env: VmEnv,
pub source_dir: Option<PathBuf>,
}Expand description
A compiled closure value.
Fields§
§func: CompiledFunction§env: VmEnv§source_dir: Option<PathBuf>Source directory for this closure’s originating module.
When set, render() and other source-relative builtins resolve
paths relative to this directory instead of the entry pipeline.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VmClosure
impl !RefUnwindSafe for VmClosure
impl !Send for VmClosure
impl !Sync for VmClosure
impl Unpin for VmClosure
impl UnsafeUnpin for VmClosure
impl !UnwindSafe for VmClosure
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