Struct erl_pp::PredefinedMacros
[−]
[src]
pub struct PredefinedMacros { /* fields omitted */ }Predefined macros.
See 9.3 Predefined Macros for detailed information.
Methods
impl PredefinedMacros[src]
fn new() -> Self
Makes a new PredefinedMacros instance.
fn set_module_name(&mut self, name: &str)
Sets the value of MODULE and MODULE_NAME macros.
fn set_function_name(&mut self, name: &str)
Sets the value of FUNCTION_NAME macro.
fn set_function_arity(&mut self, arity: usize)
Sets the value of FUNCTION_ARITY macro.
fn clear_module_name(&mut self)
Clears the value of MODULE and MODULE_NAME macros.
fn clear_function_name(&mut self)
Clears the value of FUNCTION_NAME macro.
fn clear_function_arity(&mut self)
Clears the value of FUNCTION_ARITY macro.
fn try_expand(&self, call: &MacroCall) -> Result<Option<LexicalToken>>
Tries to expand the specified macro call.
If the call is not a predefined macro, this will return Ok(None).
Trait Implementations
impl Debug for PredefinedMacros[src]
impl Default for PredefinedMacros[src]
fn default() -> PredefinedMacros
Returns the "default value" for a type. Read more