pub struct WasmFpGateVector(pub CoreGateVector<Fp>);Tuple Fields§
§0: CoreGateVector<Fp>Implementations§
Source§impl NapiFpGateVector
impl NapiFpGateVector
pub fn new() -> Self
pub fn serialize(&self) -> Result<Uint8Array>
pub fn deserialize(bytes: Uint8Array) -> Result<Self>
pub(crate) fn inner(&self) -> &CoreGateVector<Fp>
pub(crate) fn inner_mut(&mut self) -> &mut CoreGateVector<Fp>
pub(crate) fn as_slice(&self) -> &[CircuitGate<Fp>]
pub(crate) fn to_vec(&self) -> Vec<CircuitGate<Fp>>
Methods from Deref<Target = CoreGateVector<Fp>>§
pub fn as_slice(&self) -> &[CircuitGate<F>]
pub fn iter(&self) -> Iter<'_, CircuitGate<F>>
pub fn len(&self) -> usize
pub fn get_gate(&self, index: usize) -> Option<Gate<F>>
pub fn digest(&self, public_input_size: usize) -> Vec<u8> ⓘ
pub fn serialize(&self, public_input_size: usize) -> Result<String, Error>
Trait Implementations§
Source§impl Clone for NapiFpGateVector
impl Clone for NapiFpGateVector
Source§fn clone(&self) -> NapiFpGateVector
fn clone(&self) -> NapiFpGateVector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NapiFpGateVector
impl Debug for NapiFpGateVector
Source§impl Default for NapiFpGateVector
impl Default for NapiFpGateVector
Source§fn default() -> NapiFpGateVector
fn default() -> NapiFpGateVector
Returns the “default value” for a type. Read more
Source§impl Deref for NapiFpGateVector
impl Deref for NapiFpGateVector
Source§impl From<GateVector<Fp<MontBackend<FqConfig, 4>, 4>>> for NapiFpGateVector
impl From<GateVector<Fp<MontBackend<FqConfig, 4>, 4>>> for NapiFpGateVector
Source§fn from(inner: CoreGateVector<Fp>) -> Self
fn from(inner: CoreGateVector<Fp>) -> Self
Converts to this type from the input type.
Source§impl From<NapiFpGateVector> for CoreGateVector<Fp>
impl From<NapiFpGateVector> for CoreGateVector<Fp>
Source§fn from(vector: NapiFpGateVector) -> Self
fn from(vector: NapiFpGateVector) -> Self
Converts to this type from the input type.
Source§impl FromNapiMutRef for NapiFpGateVector
impl FromNapiMutRef for NapiFpGateVector
Source§unsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static mut Self>
unsafe fn from_napi_mut_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static mut Self>
Safety Read more
Source§impl FromNapiRef for NapiFpGateVector
impl FromNapiRef for NapiFpGateVector
Source§unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static Self>
unsafe fn from_napi_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static Self>
Safety Read more
Source§impl JavaScriptClassExt for NapiFpGateVector
impl JavaScriptClassExt for NapiFpGateVector
fn into_instance<'scope>( self, env: &'scope Env, ) -> Result<ClassInstance<'scope, Self>>
fn into_reference(self, env: Env) -> Result<Reference<Self>>
fn instance_of<'env, V: JsValue<'env>>(env: &Env, value: &V) -> Result<bool>
Source§impl ToNapiValue for NapiFpGateVector
impl ToNapiValue for NapiFpGateVector
Source§unsafe fn to_napi_value(
env: napi_env,
val: NapiFpGateVector,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: NapiFpGateVector, ) -> Result<napi_value>
Safety Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for &NapiFpGateVector
impl TypeName for &NapiFpGateVector
Source§impl TypeName for &mut NapiFpGateVector
impl TypeName for &mut NapiFpGateVector
Source§impl TypeName for NapiFpGateVector
impl TypeName for NapiFpGateVector
Source§impl ValidateNapiValue for &NapiFpGateVector
impl ValidateNapiValue for &NapiFpGateVector
Auto Trait Implementations§
impl Freeze for NapiFpGateVector
impl RefUnwindSafe for NapiFpGateVector
impl Send for NapiFpGateVector
impl Sync for NapiFpGateVector
impl Unpin for NapiFpGateVector
impl UnsafeUnpin for NapiFpGateVector
impl UnwindSafe for NapiFpGateVector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more