pub struct PostCompileHookRecord {
pub script: String,
pub source: String,
pub span: Option<Span>,
}Expand description
The recorded declaration of a #!postCompileHook script.
The declared #!postCompileHook script; execution against the final
Workshop text is lowering-dependent (workshop-rs emission, issue #8). The
frontend never fabricates a Workshop payload.
Fields§
§script: StringThe script path as declared (root-relative).
source: StringThe resolved script source, retained for the backend hook ABI.
span: Option<Span>The directive’s source span, when known.
Trait Implementations§
Source§impl Clone for PostCompileHookRecord
impl Clone for PostCompileHookRecord
Source§fn clone(&self) -> PostCompileHookRecord
fn clone(&self) -> PostCompileHookRecord
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 PostCompileHookRecord
impl Debug for PostCompileHookRecord
impl Eq for PostCompileHookRecord
Source§impl PartialEq for PostCompileHookRecord
impl PartialEq for PostCompileHookRecord
impl StructuralPartialEq for PostCompileHookRecord
Auto Trait Implementations§
impl Freeze for PostCompileHookRecord
impl RefUnwindSafe for PostCompileHookRecord
impl Send for PostCompileHookRecord
impl Sync for PostCompileHookRecord
impl Unpin for PostCompileHookRecord
impl UnsafeUnpin for PostCompileHookRecord
impl UnwindSafe for PostCompileHookRecord
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