swift_rs/types/scalars.rs
1/// Swift's [`Bool`](https://developer.apple.com/documentation/swift/bool) type
2pub type Bool = bool;
3
4/// Swift's [`Int`](https://developer.apple.com/documentation/swift/int) type
5pub type Int = isize;
6/// Swift's [`Int8`](https://developer.apple.com/documentation/swift/int8) type
7pub type Int8 = i8;
8/// Swift's [`Int16`](https://developer.apple.com/documentation/swift/int16) type
9pub type Int16 = i16;
10/// Swift's [`Int32`](https://developer.apple.com/documentation/swift/int32) type
11pub type Int32 = i32;
12/// Swift's [`Int64`](https://developer.apple.com/documentation/swift/int64) type
13pub type Int64 = i64;
14
15/// Swift's [`UInt`](https://developer.apple.com/documentation/swift/uint) type
16pub type UInt = usize;
17/// Swift's [`UInt8`](https://developer.apple.com/documentation/swift/uint8) type
18pub type UInt8 = u8;
19/// Swift's [`UInt16`](https://developer.apple.com/documentation/swift/uint16) type
20pub type UInt16 = u16;
21/// Swift's [`UInt32`](https://developer.apple.com/documentation/swift/uint32) type
22pub type UInt32 = u32;
23/// Swift's [`UInt64`](https://developer.apple.com/documentation/swift/uint64) type
24pub type UInt64 = u64;
25
26/// Swift's [`Float`](https://developer.apple.com/documentation/swift/float) type
27pub type Float = f32;
28/// Swift's [`Double`](https://developer.apple.com/documentation/swift/double) type
29pub type Double = f64;
30
31/// Swift's [`Float32`](https://developer.apple.com/documentation/swift/float32) type
32pub type Float32 = f32;
33/// Swift's [`Float64`](https://developer.apple.com/documentation/swift/float64) type
34pub type Float64 = f64;