xso-proc: add support for parsing attributes into Strings
This is bare-bones and is missing many features which we intend to add in future commits, such as parsing from attributes whose names differ from the field names and parsing into non-String types.
This commit is contained in:
parent
183bef5cf6
commit
212c5c4a83
10 changed files with 665 additions and 50 deletions
|
|
@ -88,6 +88,13 @@ impl State {
|
|||
self.advance_body = body;
|
||||
self
|
||||
}
|
||||
|
||||
/// Override the current `advance` implementation of this state.
|
||||
///
|
||||
/// This is an in-place version of [`Self::with_impl`].
|
||||
pub(crate) fn set_impl(&mut self, body: TokenStream) {
|
||||
self.advance_body = body;
|
||||
}
|
||||
}
|
||||
|
||||
/// A partial [`FromEventsStateMachine`] which only covers the builder for a
|
||||
|
|
|
|||
Loading…
Reference in a new issue