Struct nginx_config::ast::Value [−][src]
pub struct Value { /* fields omitted */ }
Generic string value
It may consist of strings and variable references
Some string parts might originally be escaped or quoted. We get rid of quotes when parsing
Methods
impl Value
[src]
impl Value
pub fn replace_vars<'a, F, S>(&mut self, f: F) where
F: FnMut(&str) -> Option<S>,
S: AsRef<str> + Into<String> + 'a,
[src]
pub fn replace_vars<'a, F, S>(&mut self, f: F) where
F: FnMut(&str) -> Option<S>,
S: AsRef<str> + Into<String> + 'a,
Replace variable references in this string with literal values
Trait Implementations
impl Display for Value
[src]
impl Display for Value
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 Debug for Value
[src]
impl Debug for Value
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 Value
[src]
impl Clone for Value
fn clone(&self) -> Value
[src]
fn clone(&self) -> Value
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 Value
[src]
impl PartialEq for Value
fn eq(&self, other: &Value) -> bool
[src]
fn eq(&self, other: &Value) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Value) -> bool
[src]
fn ne(&self, other: &Value) -> bool
This method tests for !=
.
impl Eq for Value
[src]
impl Eq for Value
impl FromStr for Value
[src]
impl FromStr for Value