pub struct Selectors {
pub qm: Scalar,
pub ql: Scalar,
pub qr: Scalar,
pub qd: Scalar,
pub qc: Scalar,
pub qo: Scalar,
pub pi: Scalar,
pub qarith: Scalar,
pub qlogic: Scalar,
pub qrange: Scalar,
pub qgroup_variable: Scalar,
pub qfixed_add: Scalar,
}Expand description
Polynomial selectors
Fields§
§qm: ScalarQm (mult) selector
ql: ScalarQl (left) selector
qr: ScalarQr (right) selector
qd: ScalarQd (fourth) selector
qc: ScalarQc (constant) selector
qo: ScalarQo (output) selector
pi: ScalarPublic input
qarith: ScalarQarith (arithmetic) internal selector
qlogic: ScalarQlogic (logical) internal selector
qrange: ScalarQrange (range check) internal selector
qgroup_variable: ScalarQgroup_variable (ecc group variable add) internal selector
qfixed_add: ScalarQgroup_fixed (ecc group fixed add) internal selector
Trait Implementations§
Source§impl DecodableElement for Selectors
impl DecodableElement for Selectors
Source§fn try_from_buffer_in_place<'a, 'b>(
&'a mut self,
ctx: &DecoderContext<'a>,
buf: &'b [u8],
) -> Result<()>
fn try_from_buffer_in_place<'a, 'b>( &'a mut self, ctx: &DecoderContext<'a>, buf: &'b [u8], ) -> Result<()>
Deserialize the type from a given buffer Read more
Source§fn try_from_buffer<'b>(ctx: &DecoderContext<'_>, buf: &'b [u8]) -> Result<Self>
fn try_from_buffer<'b>(ctx: &DecoderContext<'_>, buf: &'b [u8]) -> Result<Self>
Create a new instance of the type from the provided buffer
Source§fn try_decode_in_place<'a, 'b>(
&mut self,
ctx: &DecoderContext<'a>,
buf: &'b [u8],
) -> Result<&'b [u8]>
fn try_decode_in_place<'a, 'b>( &mut self, ctx: &DecoderContext<'a>, buf: &'b [u8], ) -> Result<&'b [u8]>
Write an element from the buffer, and return the remainder bytes Read more
Source§fn try_decode<'a, 'b>(
ctx: &DecoderContext<'a>,
buf: &'b [u8],
) -> Result<(Self, &'b [u8])>
fn try_decode<'a, 'b>( ctx: &DecoderContext<'a>, buf: &'b [u8], ) -> Result<(Self, &'b [u8])>
Write an element from the buffer, and return the remainder bytes Read more
Source§fn try_from_reader<R>(ctx: &DecoderContext<'_>, reader: R) -> Result<Self>where
R: Read,
fn try_from_reader<R>(ctx: &DecoderContext<'_>, reader: R) -> Result<Self>where
R: Read,
Fetch a new element from a context
Source§impl Element for Selectors
impl Element for Selectors
Source§impl EncodableElement for Selectors
impl EncodableElement for Selectors
Source§fn to_buffer(&self, ctx: &mut EncoderContext, buf: &mut [u8])
fn to_buffer(&self, ctx: &mut EncoderContext, buf: &mut [u8])
Write the type into the buffer. Read more
Source§fn to_vec(&self, ctx: &mut EncoderContext) -> Vec<u8> ⓘ
fn to_vec(&self, ctx: &mut EncoderContext) -> Vec<u8> ⓘ
Serialize the object into a bytes array.
Source§impl Ord for Selectors
impl Ord for Selectors
Source§impl PartialOrd for Selectors
impl PartialOrd for Selectors
impl Copy for Selectors
impl Eq for Selectors
impl StructuralPartialEq for Selectors
Auto Trait Implementations§
impl Freeze for Selectors
impl RefUnwindSafe for Selectors
impl Send for Selectors
impl Sync for Selectors
impl Unpin for Selectors
impl UnwindSafe for Selectors
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