@@ -18,15 +18,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818- In order to support mutation of token contents, a few APIs have been adjusted.
1919 1 . ` Token::set_content ` was added.
2020 2 . ` FormattedTokens `
21- * Methods ` new_from_tokens ` , ` new ` , and ` get_token ` were adjusted to either expect exclusive
22- references to tokens as arguments, or return exclusive references to tokens as part of the
23- result.
24- * Method ` get_tokens ` was deleted and replaced by ` tokens ` , which returns an iterator instead
25- of a reference to a vector.
26- * Method ` get_token_mut ` was added to provide a way to safely retrieve mutatable references to
27- tokens (alongside the mutable formatting data), protecting against mutating ignored tokens.
28- * Method ` tokens_mut ` was added to provide an iterable equivalent to ` get_token_mut ` ,
29- mirroring the relationship between ` get_token ` and ` tokens ` .
21+ - Methods ` new_from_tokens ` , ` new ` , and ` get_token ` were adjusted to either expect exclusive
22+ references to tokens as arguments, or return exclusive references to tokens as part of the
23+ result.
24+ - Method ` get_tokens ` was deleted and replaced by ` tokens ` , which returns an iterator instead
25+ of a reference to a vector.
26+ - Method ` get_token_mut ` was added to provide a way to safely retrieve mutatable references to
27+ tokens (alongside the mutable formatting data), protecting against mutating ignored tokens.
28+ - Method ` tokens_mut ` was added to provide an iterable equivalent to ` get_token_mut ` ,
29+ mirroring the relationship between ` get_token ` and ` tokens ` .
3030
3131### Removed
3232
0 commit comments