pub struct PreprocessingState {
pub main_file: Option<DirectiveValue>,
pub allow_macro_redeclaration: bool,
pub rule_prefix: Option<DirectiveValue>,
pub rule_prefix_template: Option<DirectiveValue>,
pub translations: Option<TranslationState>,
pub optimization: OptimizationState,
pub replacements: Vec<DirectiveValue>,
pub suppressed_warnings: Vec<String>,
pub directives: Vec<DirectiveRecord>,
}Expand description
The source-level preprocessing state observed by the frontend.
Fields§
§main_file: Option<DirectiveValue>§allow_macro_redeclaration: bool§rule_prefix: Option<DirectiveValue>§rule_prefix_template: Option<DirectiveValue>§translations: Option<TranslationState>§optimization: OptimizationState§replacements: Vec<DirectiveValue>§suppressed_warnings: Vec<String>§directives: Vec<DirectiveRecord>Trait Implementations§
Source§impl Clone for PreprocessingState
impl Clone for PreprocessingState
Source§fn clone(&self) -> PreprocessingState
fn clone(&self) -> PreprocessingState
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 PreprocessingState
impl Debug for PreprocessingState
Source§impl Default for PreprocessingState
impl Default for PreprocessingState
Source§fn default() -> PreprocessingState
fn default() -> PreprocessingState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PreprocessingState
impl<'de> Deserialize<'de> for PreprocessingState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PreprocessingState
impl PartialEq for PreprocessingState
Source§impl Serialize for PreprocessingState
impl Serialize for PreprocessingState
impl StructuralPartialEq for PreprocessingState
Auto Trait Implementations§
impl Freeze for PreprocessingState
impl RefUnwindSafe for PreprocessingState
impl Send for PreprocessingState
impl Sync for PreprocessingState
impl Unpin for PreprocessingState
impl UnsafeUnpin for PreprocessingState
impl UnwindSafe for PreprocessingState
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