pub struct PreprocessedSource {
pub tokens: Vec<Token>,
pub defines: Vec<MacroDefinition>,
}Expand description
One preprocessed token stream plus the macros captured while producing it.
Fields§
§tokens: Vec<Token>Tokens after include traversal and object-like macro expansion.
defines: Vec<MacroDefinition>Macro definitions in encounter order, with later redefinitions included.
Trait Implementations§
Source§impl Clone for PreprocessedSource
impl Clone for PreprocessedSource
Source§fn clone(&self) -> PreprocessedSource
fn clone(&self) -> PreprocessedSource
Returns a duplicate of the value. Read more
1.0.0 · 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 PreprocessedSource
impl Debug for PreprocessedSource
Source§impl PartialEq for PreprocessedSource
impl PartialEq for PreprocessedSource
impl Eq for PreprocessedSource
impl StructuralPartialEq for PreprocessedSource
Auto Trait Implementations§
impl Freeze for PreprocessedSource
impl RefUnwindSafe for PreprocessedSource
impl Send for PreprocessedSource
impl Sync for PreprocessedSource
impl Unpin for PreprocessedSource
impl UnsafeUnpin for PreprocessedSource
impl UnwindSafe for PreprocessedSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.