repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge mozilla-central to autoland. a=merge CLOSED TREE
[gecko.git]
/
third_party
/
rust
/
uniffi-example-arithmetic
/
src
/
arithmetic.udl
blob
117df4834aa410161c7acaf00e9fa6d32fc5b333
1
[Error]
2
enum ArithmeticError {
3
"IntegerOverflow",
4
};
5
6
namespace arithmetic {
7
[Throws=ArithmeticError]
8
u64 add(u64 a, u64 b);
9
10
[Throws=ArithmeticError]
11
u64 sub(u64 a, u64 b);
12
13
u64 div(u64 dividend, u64 divisor);
14
15
boolean equal(u64 a, u64 b);
16
};