pub struct PostCompileHook {
pub path: String,
pub source: String,
pub span: Span,
}Expand description
A registered #!postCompileHook script (the declaration record).
The frontend recognizes, parses, validates, and records the directive; it never executes the hook. Execution against the final Workshop text is lowering-dependent (issue #8).
Fields§
§path: StringThe script path as declared (root-relative).
source: StringThe script text, read at the directive site.
span: SpanThe directive’s source span, used for error attribution.
Trait Implementations§
Source§impl Clone for PostCompileHook
impl Clone for PostCompileHook
Source§fn clone(&self) -> PostCompileHook
fn clone(&self) -> PostCompileHook
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostCompileHook
impl Debug for PostCompileHook
Source§impl PartialEq for PostCompileHook
impl PartialEq for PostCompileHook
impl StructuralPartialEq for PostCompileHook
Auto Trait Implementations§
impl Freeze for PostCompileHook
impl RefUnwindSafe for PostCompileHook
impl Send for PostCompileHook
impl Sync for PostCompileHook
impl Unpin for PostCompileHook
impl UnsafeUnpin for PostCompileHook
impl UnwindSafe for PostCompileHook
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