Skip to content

Commit 52cd007

Browse files
intermediary
1 parent 79109a0 commit 52cd007

File tree

3 files changed

+315
-39
lines changed

3 files changed

+315
-39
lines changed

crates/pgt_text_size/src/size.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ impl TryFrom<usize> for TextSize {
109109
}
110110
}
111111

112+
impl From<TextSize> for isize {
113+
#[inline]
114+
fn from(value: TextSize) -> Self {
115+
value.raw as isize
116+
}
117+
}
118+
112119
impl From<TextSize> for usize {
113120
#[inline]
114121
fn from(value: TextSize) -> Self {

0 commit comments

Comments
 (0)