Skip to content

v0.8.0

Choose a tag to compare

@bluk bluk released this 11 Nov 20:09
· 110 commits to trunk since this release
v0.8.0
eb92788

Added

  • 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.