text-size
Newtypes for text offsets
1.1.1
19M downloads/mo
#2163 most downloaded on crates.io
rust-analyzer/text-size
What this package is like to depend on
Last release 3 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 2.5 years
Some releases are documented
notes for 2 of 4 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
6 releases · first in 2020
0 releases in the last 12 months
see the full history below
Release timeline
6 releases · Mar 2020 to Jun 2023
2021
2022
2023
2024
2025
2026
Releases
latest 6-
1.1.130 Jun 2023Nothing published for this version
-
1.1.013 Jan 2021 -
1.0.025 Apr 2020Release notes
Open source →- the carate is renamed to
text-sizefromtext_unit
Transition table:
TextUnit::of_char(c)⟹TextSize::of(c)TextUnit::of_str(s)⟹TextSize::of(s)TextUnit::from_usize(size)⟹TextSize::try_from(size).unwrap_or_else(|| panic!(_))unit.to_usize()⟹usize::from(size)TextRange::from_to(from, to)⟹TextRange::new(from, to)TextRange::offset_len(offset, size)⟹TextRange::from_len(offset, size)range.start()⟹range.start()range.end()⟹range.end()range.len()⟹range.len()range.is_empty()⟹range.is_empty()a.is_subrange(b)⟹b.contains_range(a)a.intersection(b)⟹a.intersect(b)a.extend_to(b)⟹a.cover(b)range.contains(offset)⟹range.contains(point)range.contains_inclusive(offset)⟹range.contains_inclusive(point)
- the carate is renamed to
-
0.99.011 Apr 2020Nothing published for this version
-
0.99.0-dev.326 Mar 2020 pre-releaseNothing published for this version
-
0.99.0-dev.219 Mar 2020 pre-releaseNothing published for this version