pub struct WasmFqGateVector(pub CoreGateVector<Fq>);Tuple Fields§
§0: CoreGateVector<Fq>Implementations§
Source§impl NapiFqGateVector
impl NapiFqGateVector
pub fn new() -> Self
pub fn serialize(&self) -> Result<Uint8Array>
pub fn deserialize(bytes: Uint8Array) -> Result<Self>
pub(crate) fn inner(&self) -> &CoreGateVector<Fq>
pub(crate) fn inner_mut(&mut self) -> &mut CoreGateVector<Fq>
pub(crate) fn as_slice(&self) -> &[CircuitGate<Fq>]
pub(crate) fn to_vec(&self) -> Vec<CircuitGate<Fq>>
Methods from Deref<Target = CoreGateVector<Fq>>§
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 NapiFqGateVector
impl Clone for NapiFqGateVector
Source§fn clone(&self) -> NapiFqGateVector
fn clone(&self) -> NapiFqGateVector
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 NapiFqGateVector
impl Debug for NapiFqGateVector
Source§impl Default for NapiFqGateVector
impl Default for NapiFqGateVector
Source§fn default() -> NapiFqGateVector
fn default() -> NapiFqGateVector
Returns the “default value” for a type. Read more
Source§impl Deref for NapiFqGateVector
impl Deref for NapiFqGateVector
Source§impl From<GateVector<Fp<MontBackend<FrConfig, 4>, 4>>> for NapiFqGateVector
impl From<GateVector<Fp<MontBackend<FrConfig, 4>, 4>>> for NapiFqGateVector
Source§fn from(inner: CoreGateVector<Fq>) -> Self
fn from(inner: CoreGateVector<Fq>) -> Self
Converts to this type from the input type.
Source§impl From<NapiFqGateVector> for CoreGateVector<Fq>
impl From<NapiFqGateVector> for CoreGateVector<Fq>
Source§fn from(vector: NapiFqGateVector) -> Self
fn from(vector: NapiFqGateVector) -> Self
Converts to this type from the input type.
Source§impl FromNapiMutRef for NapiFqGateVector
impl FromNapiMutRef for NapiFqGateVector
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 NapiFqGateVector
impl FromNapiRef for NapiFqGateVector
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 NapiFqGateVector
impl JavaScriptClassExt for NapiFqGateVector
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 NapiFqGateVector
impl ToNapiValue for NapiFqGateVector
Source§unsafe fn to_napi_value(
env: napi_env,
val: NapiFqGateVector,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: NapiFqGateVector, ) -> Result<napi_value>
Safety Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for &NapiFqGateVector
impl TypeName for &NapiFqGateVector
Source§impl TypeName for &mut NapiFqGateVector
impl TypeName for &mut NapiFqGateVector
Source§impl TypeName for NapiFqGateVector
impl TypeName for NapiFqGateVector
Source§impl ValidateNapiValue for &NapiFqGateVector
impl ValidateNapiValue for &NapiFqGateVector
Auto Trait Implementations§
impl Freeze for NapiFqGateVector
impl RefUnwindSafe for NapiFqGateVector
impl Send for NapiFqGateVector
impl Sync for NapiFqGateVector
impl Unpin for NapiFqGateVector
impl UnsafeUnpin for NapiFqGateVector
impl UnwindSafe for NapiFqGateVector
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