You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Token::as_str() and as_str() to other token and property types. as_str() replaces to_str() or as_str_unchecked() as the preferred method
to get the underlying value.
Add Token::from_str() and from_str() to other token and property types.
The method should be used for constructing values in tests.
Deprecated
Deprecated as_str_unchecked(), to_str() and into_inner() on Token.
Deprecated as_str_unchecked(), to_str() and into_inner() on token types.
Deprecated as_str_unchecked() and to_str() on property types.
Removed
Remove From<&[u8]> and AsRef<[u8]> implementations from token and property
types.
Changed
Changed the internal implementation of tokens to use &str instead of &[u8]. Micro benchmark performance should be similar to the previous
implementation, but when using as_str() instead of to_str(), the calling
code does not have to handle a Result type which should increase overall
performance.