pub enum PreprocessorDefine {
ObjectLike {
ident: Identifier,
value: String,
},
FunctionLike {
ident: Identifier,
args: Vec<Identifier>,
value: String,
},
}Expand description
A #define preprocessor directive.
Allows any expression but only Integer and Float literals make sense
Variants§
Trait Implementations§
Source§impl Clone for PreprocessorDefine
impl Clone for PreprocessorDefine
Source§fn clone(&self) -> PreprocessorDefine
fn clone(&self) -> PreprocessorDefine
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 PreprocessorDefine
impl Debug for PreprocessorDefine
Source§impl Host for PreprocessorDefine
impl Host for PreprocessorDefine
Source§impl HostMut for PreprocessorDefine
impl HostMut for PreprocessorDefine
Source§fn visit_mut<V>(&mut self, visitor: &mut V)where
V: VisitorMut,
fn visit_mut<V>(&mut self, visitor: &mut V)where
V: VisitorMut,
Visit an AST node.
Source§impl PartialEq for PreprocessorDefine
impl PartialEq for PreprocessorDefine
impl StructuralPartialEq for PreprocessorDefine
Auto Trait Implementations§
impl Freeze for PreprocessorDefine
impl RefUnwindSafe for PreprocessorDefine
impl Send for PreprocessorDefine
impl Sync for PreprocessorDefine
impl Unpin for PreprocessorDefine
impl UnwindSafe for PreprocessorDefine
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