Struct nginx_config::ast::Directive [−][src]
Fields
position: Pos
item: Item
Methods
impl Directive
[src]
impl Directive
pub fn visit_values_mut<F>(&mut self, f: F) where
F: FnMut(&mut Value),
[src]
pub fn visit_values_mut<F>(&mut self, f: F) where
F: FnMut(&mut Value),
Executes function on all the Value things (not recursively)
This is useful for substituting variables.
The callback isn't called for directives inside the { block }
, so
this function might be better used with visit_mutable
Trait Implementations
impl Debug for Directive
[src]
impl Debug for Directive
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Directive
[src]
impl Clone for Directive
fn clone(&self) -> Directive
[src]
fn clone(&self) -> Directive
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Directive
[src]
impl PartialEq for Directive
fn eq(&self, other: &Directive) -> bool
[src]
fn eq(&self, other: &Directive) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Directive) -> bool
[src]
fn ne(&self, other: &Directive) -> bool
This method tests for !=
.
impl Eq for Directive
[src]
impl Eq for Directive
impl Display for Directive
[src]
impl Display for Directive