1///|
2pub impl trait Setter {
set(Ptr[Self], Self) -> Unit
}
Setter for Byte with (self : Ptr[Byte], x : Byte) -> Unit
set(self : Ptr[Byte], x : Byte) {
3 (ptr : Ptr[Byte], x : Byte) -> Unit
byte_pointer_set(self, x)
4}
5
6///|
7pub impl trait Setter {
set(Ptr[Self], Self) -> Unit
}
Setter for Char with (self : Ptr[Char], x : Char) -> Unit
set(self : Ptr[Char], x : Char) {
8 (ptr : Ptr[Int], x : Int) -> Unit
int32_pointer_set((x : Ptr[Char]) -> Ptr[Int]
unsafe_coerce(self), unsafe_coerce(x))
9}
10
11///|
12pub impl trait Setter {
set(Ptr[Self], Self) -> Unit
}
Setter for Int16 with (self : Ptr[Int16], x : Int16) -> Unit
set(self : Ptr[Int16], x : Int16) {
13 (ptr : Ptr[Int16], x : Int16) -> Unit
int16_pointer_set(self, x)
14}
15
16///|
17pub impl trait Setter {
set(Ptr[Self], Self) -> Unit
}
Setter for Int with (self : Ptr[Int], x : Int) -> Unit
set(self : Ptr[Int], x : Int) {
18 (ptr : Ptr[Int], x : Int) -> Unit
int32_pointer_set(self, x)
19}
20
21///|
22pub impl trait Setter {
set(Ptr[Self], Self) -> Unit
}
Setter for Int64 with (self : Ptr[Int64], x : Int64) -> Unit
set(self : Ptr[Int64], x : Int64) {
23 (ptr : Ptr[Int64], x : Int64) -> Unit
int64_pointer_set(self, x)
24}
25
26///|
27pub impl trait Setter {
set(Ptr[Self], Self) -> Unit
}
Setter for UInt16 with (self : Ptr[UInt16], x : UInt16) -> Unit
set(self : Ptr[UInt16], x : UInt16) {
28 (ptr : Ptr[UInt16], x : UInt16) -> Unit
uint16_pointer_set(self, x)
29}
30
31///|
32pub impl trait Setter {
set(Ptr[Self], Self) -> Unit
}
Setter for UInt with (self : Ptr[UInt], x : UInt) -> Unit
set(self : Ptr[UInt], x : UInt) {
33 (ptr : Ptr[UInt], x : UInt) -> Unit
uint32_pointer_set(self, x)
34}
35
36///|
37pub impl trait Setter {
set(Ptr[Self], Self) -> Unit
}
Setter for UInt64 with (self : Ptr[UInt64], x : UInt64) -> Unit
set(self : Ptr[UInt64], x : UInt64) {
38 (ptr : Ptr[UInt64], x : UInt64) -> Unit
uint64_pointer_set(self, x)
39}
40
41///|
42pub impl trait Setter {
set(Ptr[Self], Self) -> Unit
}
Setter for Float with (self : Ptr[Float], x : Float) -> Unit
set(self : Ptr[Float], x : Float) {
43 (ptr : Ptr[Float], x : Float) -> Unit
float_pointer_set(self, x)
44}
45
46///|
47pub impl trait Setter {
set(Ptr[Self], Self) -> Unit
}
Setter for Double with (self : Ptr[Double], x : Double) -> Unit
set(self : Ptr[Double], x : Double) {
48 (ptr : Ptr[Double], x : Double) -> Unit
double_pointer_set(self, x)
49}
50