pub struct Condition {
pub defined: Symbol,
pub report: bool,
}Expand description
What a #if line asks of an expansion that an ordinary stretch of a file does not.
Only defined is in here, and it carries its own name because the expander has nothing else
to recognise an operator by: by the time a line reaches expansion it is a run of tokens like
any other, and defined is an identifier in every one of them.
Fields§
§defined: SymbolWhat defined is called, interned.
report: boolWhether to report each defined an expansion produced, which is -Wpedantic.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnsafeUnpin for Condition
impl UnwindSafe for Condition
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