Skip to content

Commit 979e9a4

Browse files
committed
refactor: rename ti to type_id; TypeIndex to TypeId
1 parent f8afcb2 commit 979e9a4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ pub struct DbRecordEvent {
210210

211211
#[derive(Debug, Default, Copy, Clone, Serialize, Deserialize, PartialEq)]
212212
#[serde(transparent)]
213-
pub struct TypeIndex(pub usize);
213+
pub struct TypeId(pub usize);
214214

215215
// use ValueRecord for recording custom languages
216216
// use value::Value for interaction with existing frontend
@@ -221,34 +221,34 @@ pub struct TypeIndex(pub usize);
221221
pub enum ValueRecord {
222222
Int {
223223
i: i64,
224-
ti: TypeIndex,
224+
type_id: TypeId,
225225
},
226226
Float {
227227
f: f64,
228-
ti: TypeIndex,
228+
type_id: TypeId,
229229
},
230230
Bool {
231231
b: bool,
232-
ti: TypeIndex,
232+
type_id: TypeId,
233233
},
234234
String {
235235
text: String,
236-
ti: TypeIndex,
236+
type_id: TypeId,
237237
},
238238
Sequence {
239239
elements: Vec<ValueRecord>,
240-
ti: TypeIndex,
240+
type_id: TypeId,
241241
},
242242
Raw {
243243
r: String,
244-
ti: TypeIndex,
244+
type_id: TypeId,
245245
},
246246
Error {
247247
msg: String,
248-
ti: TypeIndex,
248+
type_id: TypeId,
249249
},
250250
None {
251-
ti: TypeIndex,
251+
type_id: TypeId,
252252
},
253253
}
254254

0 commit comments

Comments
 (0)