aboutsummaryrefslogtreecommitdiff
path: root/src/spanned.rs
AgeCommit message (Collapse)AuthorLines
2019-10-25 Spanned: impl PartialEq, Eq, Hash, PartialOrd, Ord in terms of the value (#344)est31-1/+36
* Spanned: impl PartialEq, Eq, Hash, PartialOrd, Ord in terms of the value This is because we want to be able to index into HashMap<Spanned<String>, T> with a dummy span and get results where only the content has to match. * Add Borrow impl * Add tests
2019-10-03get_mut should return a mutable reference (#338)Guillaume Fraux-2/+2
2019-09-16Support deserializing spanned keys (#333)est31-1/+1
* Store key spans in the deserializer * Support deserializing spanned keys * Store key spans of the table header as well * Support nested table key spans as well
2019-09-09Remove redundant #[doc(hidden)] attributes (#331)est31-8/+4
2019-08-14Removed all warnings besides twoNick Hackman-10/+6
Majority of warnings removed via RustFix Two remain one being a long return type and another being a name suggestion from Clippy `to_owned` for MaybeString
2019-08-12Derive Clone+PartialEq for SpannedJason Priest-1/+1
Should any other traits be derived?
2019-08-12Run `cargo fmt`Alex Crichton-1/+0
2019-08-09include Spanned in the docsPietro Albini-20/+21
The `Spanned` struct was originally included in the docs as a re-export, but rustdoc doesn't render re-exports if the module from which it's exported isn't documented. Since `Spanned` is the only public item inside the `spanned` module this commit shows the struct as a normal item in the index, and moves the example from the module docs to the struct docs.
2019-05-082018 edition idioms.Eric Huss-5/+2
2018-12-17Run `cargo fmt`Alex Crichton-8/+12
2018-05-09Make spanned module private and hide internalsJohn-John Tedro-6/+40
2018-05-07Use BorrowedStrDeserializer instead of generated key deserializersJohn-John Tedro-50/+3
2018-05-07Use custom struct/field naming to deserialize spansJohn-John Tedro-16/+120
2018-05-06Proof of concept: reporting span information to a Spanned<T> typeDavid Tolnay-0/+49