about summary refs log tree commit diff
path: root/src/libcore/ops.rs
blob: 2a05aeb72c2abe339aa0beb2e205278ca26ed990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// Core operators and kinds.

#[cfg(notest)]
#[lang="const"]
trait const {
    // Empty.
}

#[cfg(notest)]
#[lang="copy"]
trait copy {
    // Empty.
}

#[cfg(notest)]
#[lang="send"]
trait send {
    // Empty.
}

#[cfg(notest)]
#[lang="owned"]
trait owned {
    // Empty.
}

#[cfg(notest)]
#[lang="add"]
trait add<RHS,Result> {
    pure fn add(rhs: RHS) -> Result;
}

#[cfg(notest)]
#[lang="sub"]
trait sub<RHS,Result> {
    pure fn sub(rhs: RHS) -> Result;
}

#[cfg(notest)]
#[lang="mul"]
trait mul<RHS,Result> {
    pure fn mul(rhs: RHS) -> Result;
}

#[cfg(notest)]
#[lang="div"]
trait div<RHS,Result> {
    pure fn div(rhs: RHS) -> Result;
}

#[cfg(notest)]
#[lang="modulo"]
trait modulo<RHS,Result> {
    pure fn modulo(rhs: RHS) -> Result;
}

#[cfg(notest)]
#[lang="neg"]
trait neg<Result> {
    pure fn neg() -> Result;
}

#[cfg(notest)]
#[lang="bitand"]
trait bitand<RHS,Result> {
    pure fn bitand(rhs: RHS) -> Result;
}

#[cfg(notest)]
#[lang="bitor"]
trait bitor<RHS,Result> {
    pure fn bitor(rhs: RHS) -> Result;
}

#[cfg(notest)]
#[lang="bitxor"]
trait bitxor<RHS,Result> {
    pure fn bitxor(rhs: RHS) -> Result;
}

#[cfg(notest)]
#[lang="shl"]
trait shl<RHS,Result> {
    pure fn shl(rhs: RHS) -> Result;
}

#[cfg(notest)]
#[lang="shr"]
trait shr<RHS,Result> {
    pure fn shr(rhs: RHS) -> Result;
}

#[cfg(notest)]
#[lang="index"]
trait index<Index,Result> {
    pure fn index(index: Index) -> Result;
}