Struct nginx_config::ast::Directive
[−]
[src]
pub struct Directive { pub position: Pos, pub item: Item, }
Fields
position: Pos
item: Item
Methods
impl Directive
[src]
pub fn visit_values_mut<F>(&mut self, f: F) where
F: FnMut(&mut Value),
[src]
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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Directive
[src]
fn clone(&self) -> Directive
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Directive
[src]
fn eq(&self, __arg_0: &Directive) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Directive) -> bool
[src]
This method tests for !=
.