pub struct WasmFqPolyComm {
pub unshifted: NapiVector<NapiGPallas>,
pub shifted: Option<NapiGPallas>,
}Fields§
§unshifted: NapiVector<NapiGPallas>§shifted: Option<NapiGPallas>Implementations§
Source§impl NapiFqPolyComm
impl NapiFqPolyComm
pub fn new( unshifted: NapiVector<NapiGPallas>, shifted: Option<NapiGPallas>, ) -> Self
pub fn unshifted(&self) -> NapiVector<NapiGPallas>
pub fn set_unshifted(&mut self, x: NapiVector<NapiGPallas>)
pub fn shifted(&self) -> Option<NapiGPallas>
pub fn set_shifted(&mut self, value: Option<NapiGPallas>)
Trait Implementations§
Source§impl Clone for NapiFqPolyComm
impl Clone for NapiFqPolyComm
Source§fn clone(&self) -> NapiFqPolyComm
fn clone(&self) -> NapiFqPolyComm
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 NapiFqPolyComm
impl Debug for NapiFqPolyComm
Source§impl Default for NapiFqPolyComm
impl Default for NapiFqPolyComm
Source§fn default() -> NapiFqPolyComm
fn default() -> NapiFqPolyComm
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NapiFqPolyComm
impl<'de> Deserialize<'de> for NapiFqPolyComm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&NapiFqPolyComm> for PolyComm<Pallas>
impl From<&NapiFqPolyComm> for PolyComm<Pallas>
Source§fn from(x: &NapiFqPolyComm) -> Self
fn from(x: &NapiFqPolyComm) -> Self
Converts to this type from the input type.
Source§impl From<&PolyComm<Affine<PallasParameters>>> for NapiFqPolyComm
impl From<&PolyComm<Affine<PallasParameters>>> for NapiFqPolyComm
Source§impl From<NapiFqPolyComm> for PolyComm<Pallas>
impl From<NapiFqPolyComm> for PolyComm<Pallas>
Source§fn from(x: NapiFqPolyComm) -> Self
fn from(x: NapiFqPolyComm) -> Self
Converts to this type from the input type.
Source§impl From<PolyComm<Affine<PallasParameters>>> for NapiFqPolyComm
impl From<PolyComm<Affine<PallasParameters>>> for NapiFqPolyComm
Source§impl FromNapiMutRef for NapiFqPolyComm
impl FromNapiMutRef for NapiFqPolyComm
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 NapiFqPolyComm
impl FromNapiRef for NapiFqPolyComm
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 FromNapiValue for NapiFqPolyComm
impl FromNapiValue for NapiFqPolyComm
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: Unknown<'_>) -> Result<Self, Error>
Source§impl JavaScriptClassExt for NapiFqPolyComm
impl JavaScriptClassExt for NapiFqPolyComm
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 Serialize for NapiFqPolyComm
impl Serialize for NapiFqPolyComm
Source§impl ToNapiValue for NapiFqPolyComm
impl ToNapiValue for NapiFqPolyComm
Source§unsafe fn to_napi_value(
env: napi_env,
val: NapiFqPolyComm,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: NapiFqPolyComm, ) -> Result<napi_value>
Safety Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for &NapiFqPolyComm
impl TypeName for &NapiFqPolyComm
Source§impl TypeName for &mut NapiFqPolyComm
impl TypeName for &mut NapiFqPolyComm
Source§impl TypeName for NapiFqPolyComm
impl TypeName for NapiFqPolyComm
Source§impl ValidateNapiValue for &NapiFqPolyComm
impl ValidateNapiValue for &NapiFqPolyComm
Auto Trait Implementations§
impl Freeze for NapiFqPolyComm
impl RefUnwindSafe for NapiFqPolyComm
impl Send for NapiFqPolyComm
impl Sync for NapiFqPolyComm
impl Unpin for NapiFqPolyComm
impl UnsafeUnpin for NapiFqPolyComm
impl UnwindSafe for NapiFqPolyComm
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