Lukas Wirth
1b62ceb886
Merge pull request #21002 from Veykril/veykril/push-nztxvpnntmrx
...
lib: Bump editions to 2024 and remove legacy files
2025-11-15 09:17:16 +02:00
Lukas Wirth
ae4b7f6c8f
Reformat
2025-11-15 09:16:57 +02:00
Lukas Wirth
d46914fa78
Constify some constructors
2023-06-30 09:18:45 +02:00
Aleksey Kladov
19be44515a
Allow binary-searching an array of disjoint ranges
2021-01-13 20:08:43 +03:00
CAD97
fe01805761
Fix TextSize::of docs to no longer suggest implementing TextLen
2020-05-01 13:09:52 -04:00
Aleksey Kladov
140976ab3a
🎉 1.0.0 🎉
2020-04-25 11:46:20 +02:00
Aleksey Kladov
e584bb8384
Fix docs
2020-04-25 11:38:10 +02:00
Aleksey Kladov
93e0c7d77a
Sprinkle inline
2020-04-25 11:32:14 +02:00
Aleksey Kladov
5dcfeee68c
Drop unused API
2020-04-25 00:57:08 +02:00
bors[bot]
12a4ae2401
Merge rust-analyzer/text-size#44
...
44: Scope trait TextLen just for primitives r=matklad a=CAD97
As an alternative to rust-analyzer/text-size#41
I thought I posted this already....
Co-authored-by: CAD97 <cad97@cad97.com>
2020-04-22 09:20:01 +00:00
CAD97
d67af9b90b
Scope trait TextLen just for primitives
2020-04-17 20:10:36 -04:00
bors[bot]
bca4c049d9
Merge rust-analyzer/text-size#42
...
42: Update README.md with the right title r=matklad a=bnjjj
Co-authored-by: Coenen Benjamin <benjamin.coenen@hotmail.com>
2020-04-15 09:04:28 +00:00
Coenen Benjamin
983b7ea606
Update README.md
2020-04-15 10:54:27 +02:00
ConnorSkees
466ccec265
fix typos
2020-04-14 23:35:02 -04:00
Coenen Benjamin
5fc3fa0b8a
Update README.md
2020-04-14 09:46:19 +02:00
Aleksey Kladov
6a47758bf1
Ready to launch 🚀 !
2020-04-11 14:22:16 +02:00
Aleksey Kladov
310114e977
Add more docs
2020-04-11 14:21:53 +02:00
CAD97
44492515ab
Rename LenTextSize => TextLen
...
This way, it's a reasonable name to use.
2020-04-07 17:10:57 -04:00
CAD97
353ea84fa9
Rename TextRange::from_offset => at
2020-04-07 16:49:16 -04:00
CAD97
98d63c0391
Rename TextRange::from_len => from_offset
2020-04-07 16:36:32 -04:00
Aleksey Kladov
4527c63db3
Merge pull request rust-analyzer/text-size#37 from CAD97/more-lentextsize
...
Don't blanket impl LenTextSize
2020-03-31 12:45:39 +02:00
CAD97
c9220dd18e
Imporove test's impl LenTextSize for BadRope
2020-03-27 16:51:58 -04:00
bors[bot]
2a0928267e
Merge rust-analyzer/text-size#35
...
35: Re-add Index<TextRange> for String r=matklad a=CAD97
These exist in `text_unit`, and seem to be required to index `String`. (Why doesn't deref coersion kick in here? I don't know.)
Co-authored-by: CAD97 <cad97@cad97.com>
2020-03-26 21:03:52 +00:00
CAD97
a39847804d
Add test for indexing
2020-03-26 17:03:04 -04:00
CAD97
5d2c7a779d
Don't blanket impl LenTextSize
2020-03-26 16:58:49 -04:00
Aleksey Kladov
16b144b324
Merge pull request rust-analyzer/text-size#32 from CAD97/rustdocflags
...
Actually fail CI for doc warnings
2020-03-26 10:29:36 +01:00
CAD97
fe3fe80fa2
Re-add Index<TextRange> for String
2020-03-25 21:41:48 -04:00
CAD97
bf18e9f445
Bump dev version
2020-03-25 20:39:02 -04:00
CAD97
80fb6a5f78
Actually fail CI for doc warnings
2020-03-25 20:18:40 -04:00
bors[bot]
be44120d49
Merge rust-analyzer/text-size#31
...
31: Use standard generics for TextSize::of r=CAD97 a=CAD97
There is no specific reason to use APIT here, so prefer the form that allows more control for the user, in the form of the turbofish.
Co-authored-by: CAD97 <cad97@cad97.com>
2020-03-26 00:18:03 +00:00
CAD97
9cca8e26f0
Use standard generics for TextSize::of
...
There is no specific reason to use APIT here, so prefer the form that allows more control for the user, in the form of the turbofish.
2020-03-25 20:17:35 -04:00
CAD97
0f09f1d10d
Just unwrap in LenTextSize for &str
2020-03-25 20:15:28 -04:00
CAD97
cda9765cae
Fix broken intra doc link
2020-03-25 20:05:18 -04:00
Aleksey Kladov
8c3d31f4f2
Merge pull request rust-analyzer/text-size#27 from CAD97/ci-docs
...
Ensure docs build
2020-03-24 17:21:11 +01:00
bors[bot]
128f45fb10
Merge rust-analyzer/text-size#29
...
29: TextSized is not meant to be used directly... r=matklad a=CAD97
so rename it to a name more distinct from TextSize.
Co-authored-by: CAD97 <cad97@cad97.com>
2020-03-24 08:58:25 +00:00
CAD97
ade5c7b7d6
TextSized is not meant to be used directly...
...
so rename it to a name more distinct from TextSize.
2020-03-23 21:36:09 -04:00
CAD97
e497041625
Make sure docs build on CI
2020-03-23 21:31:39 -04:00
CAD97
9aa3cabcef
Add doc examples to things
2020-03-23 21:30:39 -04:00
CAD97
211ae81ad0
Tests to ensure common and auto trait presence
2020-03-23 17:03:43 -04:00
CAD97
5468ef0a9f
Move construction tests into a test
2020-03-23 16:45:18 -04:00
CAD97
3b9d00e65d
Add assertion for TextSized impls
2020-03-23 16:38:34 -04:00
CAD97
ba1fd73c12
target the TextSized blanket impl more tightly"
2020-03-23 16:38:34 -04:00
CAD97
5f3a2c2aec
add recursive impl for TextSized
2020-03-23 16:38:34 -04:00
Aleksey Kladov
8d9a1a4192
Make TextRange constructors more boring
...
Remove `fn TextRange(` as that's slightly unusual and surprising,
which will add up to a lot of confusion over the long run.
Instead add:
* `new` as the biased, canonical way to create range from bounds
* `from_len` as an alternative ctor from starting position and len
* `empty` for empty ranges at a given offset
* `up_to` for ranges at zero offset with given length
* `default` for an empty range at zero
2020-03-22 09:23:43 +01:00
Christopher Durham
16334551bd
Add licensing text to README
2020-03-20 20:21:44 -04:00
bors[bot]
4bcf23e99d
Merge rust-analyzer/text-size#22
...
22: Make intersect and cover into methods r=matklad a=matklad
r? @CAD97
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-03-20 23:43:44 +00:00
Aleksey Kladov
6c8c54ef15
Update src/range.rs
...
Co-Authored-By: Christopher Durham <cad97@cad97.com>
2020-03-21 00:43:20 +01:00
Aleksey Kladov
5ae5d6e1fc
Swithc to GitHub actions
2020-03-20 17:17:40 +01:00
Aleksey Kladov
d8b8a9854b
Rename repo
2020-03-20 17:12:32 +01:00
Aleksey Kladov
0edd20912e
Make intersect and cover into methods
2020-03-20 09:46:15 +01:00