Struct nginx_config::ast::Directive [−][src]
pub struct Directive {
pub position: Pos,
pub item: Item,
}Fields
position: Pos
item: Item
Methods
impl Directive[src]
impl Directivepub 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 Directivefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Directive[src]
impl Clone for Directivefn clone(&self) -> Directive[src]
fn clone(&self) -> DirectiveReturns 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 Directivefn eq(&self, other: &Directive) -> bool[src]
fn eq(&self, other: &Directive) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for Directive[src]
impl Eq for Directiveimpl Display for Directive[src]
impl Display for Directive