This release mostly brings some new trait implementations for convenience.
From<T>
for LocatedSpan
Deref
for LocatedSpan
, returning the fragmentStableDeref
as well, if the stable-deref-trait
feature is enabled.Compare
HexDisplay
, and deprecated the impl_hex_display!
macro which no longer does anythingLocatedSpan::get_line_beginning
, which returns the beginning of a line up to the end of the LocatedSpan. Useful to display human-friendly errors.This release brings several breaking changes:
extra
property is now ignored when comparing LocatedSpandefault-features = false
offset
/line
/fragment
are now private attributes of the LocatedSpan
structure, to fix an undefined behavior is they are modified. You now have to use the location_offset()
, location_line()
, and fragment()
getters instead.LocatedSpanEx
is removed in favour of adding a generic type parameter to LocatedSpan
which defaults to to ()
Additionally, there are a few documentation improvements:
Finally, LocatedSpan
now implements Display
We decided that the crate was mature enough to release the version 1.0.0. It doesn't bring much new things, still we are proud of this big move! :tada:
Thanks to the people who made this release: @ProgVal, @peckpeck, @wycats, @dalance
Patch version: