Fixing trait definition
This commit is contained in:
parent
b6df3759c8
commit
0921dffd86
@ -113,7 +113,7 @@ impl<'a> Finalize for Result<GasLeft<'a>> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Cost calculation type. For low-gas usage we calculate costs using usize instead of U256
|
/// Cost calculation type. For low-gas usage we calculate costs using usize instead of U256
|
||||||
pub trait CostType: Sized : From<usize> + Copy
|
pub trait CostType: Sized + From<usize> + Copy
|
||||||
+ ops::Mul<Output=Self> + ops::Div<Output=Self> + ops::Add<Output=Self> +ops::Sub<Output=Self>
|
+ ops::Mul<Output=Self> + ops::Div<Output=Self> + ops::Add<Output=Self> +ops::Sub<Output=Self>
|
||||||
+ ops::Shr<usize, Output=Self> + ops::Shl<usize, Output=Self>
|
+ ops::Shr<usize, Output=Self> + ops::Shl<usize, Output=Self>
|
||||||
+ cmp::Ord + fmt::Debug {
|
+ cmp::Ord + fmt::Debug {
|
||||||
|
Loading…
Reference in New Issue
Block a user