PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 6
  1. 1.1.1 30 Jun 2023

    Nothing published for this version

  2. 1.1.0 13 Jan 2021
    Release notes
    • add TextRange::ordering method
    Open source →
  3. 1.0.0 25 Apr 2020
    Release notes
    • the carate is renamed to text-size from text_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)
    Open source →
  4. 0.99.0 11 Apr 2020

    Nothing published for this version

  5. 0.99.0-dev.3 26 Mar 2020 pre-release

    Nothing published for this version

  6. 0.99.0-dev.2 19 Mar 2020 pre-release

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive