pub enum Exponent {
Scalar(f64),
AggregatorPubkey(String),
Big(String),
}
Variants§
Scalar(f64)
/ Take the working value to the exponent of value.
AggregatorPubkey(String)
/ Take the working value to the exponent of the aggregators value.
Big(String)
/ A stringified big.js. Accepts variable expansion syntax.
Implementations§
Source§impl Exponent
impl Exponent
Sourcepub fn merge<B>(
field: &mut Option<Exponent>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<Exponent>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl StructuralPartialEq for Exponent
Auto Trait Implementations§
impl Freeze for Exponent
impl RefUnwindSafe for Exponent
impl Send for Exponent
impl Sync for Exponent
impl Unpin for Exponent
impl UnwindSafe for Exponent
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