We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
one
ascii
1 parent f9d7005 commit 283cb68Copy full SHA for 283cb68
src/size.rs
@@ -59,12 +59,6 @@ impl TextSize {
59
pub const fn zero() -> TextSize {
60
TextSize(0)
61
}
62
-
63
- /// A size of one.
64
- #[inline]
65
- pub const fn one() -> TextSize {
66
- TextSize(1)
67
- }
68
69
70
/// Methods to act like a primitive integer type, where reasonably applicable.
@@ -75,7 +69,7 @@ impl TextSize {
75
/// The largest representable text size. (`u32::MAX`)
76
pub const MAX: TextSize = TextSize(u32::MAX);
77
71
/// The text size of a single ASCII character.
78
- pub const ONE: TextSize = TextSize(1);
72
+ pub const ASCII: TextSize = TextSize(1);
79
73
80
74
/// Checked addition. Returns `None` if overflow occurred.
81
#[inline]
0 commit comments