MCPcopy Create free account
hub / github.com/PolyhedraZK/ExpanderCompilerCollection / copy

Function copy

circuit-std-rs/src/gnark/element.rs:101–108  ·  view source on GitHub ↗
(e: &Element<T>)

Source from the content-addressed store, hash-verified

99 Element::new(limbs, overflow, true, false, false, Variable::default())
100}
101pub 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}
109pub fn from_interface(input: Box<dyn Any>) -> BigInt {
110 let r;
111 if let Some(v) = input.downcast_ref::<BigInt>() {

Callers 9

randomCircuitMethod · 0.85
randomEvalMethod · 0.85
SumRationalNumbersFunction · 0.85
computeKeccakFunction · 0.85
mainFunction · 0.85
MemorizedCallMethod · 0.85
FromInterfaceMethod · 0.85
OneMethod · 0.85

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected