(e: &Element<T>)
| 99 | Element::new(limbs, overflow, true, false, false, Variable::default()) |
| 100 | } |
| 101 | pub fn copy<T: FieldParams>(e: &Element<T>) -> Element<T> { |
| 102 | let mut r = Element::new(Vec::new(), 0, false, false, false, Variable::default()); |
| 103 | r.limbs = e.limbs.clone(); |
| 104 | r.overflow = e.overflow; |
| 105 | r.internal = e.internal; |
| 106 | r.mod_reduced = e.mod_reduced; |
| 107 | r |
| 108 | } |
| 109 | pub fn from_interface(input: Box<dyn Any>) -> BigInt { |
| 110 | let r; |
| 111 | if let Some(v) = input.downcast_ref::<BigInt>() { |
no test coverage detected