pub struct Preprocessed {
pub tokens: Vec<Token>,
pub defines: Vec<DefineRecord>,
pub settings: Option<SettingsBlock>,
pub post_compile_hook: Option<PostCompileHook>,
pub preprocessing: PreprocessingState,
}Expand description
The result of preprocessing.
Fields§
§tokens: Vec<Token>The expanded, single-file token stream.
defines: Vec<DefineRecord>The recorded defines in definition order.
settings: Option<SettingsBlock>The top-of-file settings { ... } block, when present (#86).
post_compile_hook: Option<PostCompileHook>The registered #!postCompileHook script, when declared.
preprocessing: PreprocessingStateFrontend-visible preprocessing state; backend effects are not run.
Trait Implementations§
Source§impl Clone for Preprocessed
impl Clone for Preprocessed
Source§fn clone(&self) -> Preprocessed
fn clone(&self) -> Preprocessed
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 moreAuto Trait Implementations§
impl Freeze for Preprocessed
impl RefUnwindSafe for Preprocessed
impl Send for Preprocessed
impl Sync for Preprocessed
impl Unpin for Preprocessed
impl UnsafeUnpin for Preprocessed
impl UnwindSafe for Preprocessed
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