[−][src]Trait curlyconf::ParserAccess
Make it possible for Deserialize
impls to access the state of the parser.
Automatically implemented on every Deserializer
implementation.
Provided methods
fn value_name(&self) -> String
Get the name of the value that's currently being parsed.
Useful in Deserialize
implementations. You can have one field
with several aliases (see Builder::alias
) and differentiate
the action in Deserialize::deserialize
based on which alias it is.
For example, a groups: Vec<String>
value, with addgroup
and
delgroup
aliases.
fn parser(&self) -> Parser
Get a direct reference to the parser instead of via the Deserializer handle so that it can be stored somewhere (usually in a visitor struct).
Implementors
impl ParserAccess for Parser
[src]
impl<'de, T> ParserAccess for T where
T: Deserializer<'de>,
[src]
T: Deserializer<'de>,