pub struct ObliviousTransferUnits(/* private fields */);
Expand description
The maximum divisible unit of Quilibrium. Represents a single bit in an oblivious transfer.
Implementations§
source§impl ObliviousTransferUnits
impl ObliviousTransferUnits
sourcepub fn quil_tokens(&self) -> U256
pub fn quil_tokens(&self) -> U256
Convert to QUIL tokens (floored). One QUIL token corresponds to 8 * 10^9 oblivious transfer units.
Trait Implementations§
source§impl Clone for ObliviousTransferUnits
impl Clone for ObliviousTransferUnits
source§fn clone(&self) -> ObliviousTransferUnits
fn clone(&self) -> ObliviousTransferUnits
Returns a copy 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 ObliviousTransferUnits
impl Debug for ObliviousTransferUnits
source§impl<'de> Deserialize<'de> for ObliviousTransferUnits
impl<'de> Deserialize<'de> for ObliviousTransferUnits
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 PartialEq for ObliviousTransferUnits
impl PartialEq for ObliviousTransferUnits
source§fn eq(&self, other: &ObliviousTransferUnits) -> bool
fn eq(&self, other: &ObliviousTransferUnits) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ObliviousTransferUnits
impl Serialize for ObliviousTransferUnits
source§impl TryFrom<&[u8]> for ObliviousTransferUnits
impl TryFrom<&[u8]> for ObliviousTransferUnits
impl Copy for ObliviousTransferUnits
impl Eq for ObliviousTransferUnits
impl StructuralEq for ObliviousTransferUnits
impl StructuralPartialEq for ObliviousTransferUnits
Auto Trait Implementations§
impl RefUnwindSafe for ObliviousTransferUnits
impl Send for ObliviousTransferUnits
impl Sync for ObliviousTransferUnits
impl Unpin for ObliviousTransferUnits
impl UnwindSafe for ObliviousTransferUnits
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request