pub struct OracleNumericInfo {
pub base: usize,
pub nb_digits: Vec<usize>,
}
Expand description
Information about the base and number of digits used by the oracle.
Fields§
§base: usize
The base in which the oracle will represent the outcome value.
nb_digits: Vec<usize>
The number of digits that each oracle will use to represent the outcome value.
Implementations§
Source§impl OracleNumericInfo
impl OracleNumericInfo
Sourcepub fn get_min_nb_digits(&self) -> usize
pub fn get_min_nb_digits(&self) -> usize
Return the minimum number of digits supported by an oracle in the group.
Sourcepub fn has_diff_nb_digits(&self) -> bool
pub fn has_diff_nb_digits(&self) -> bool
Returns whether oracles have varying number of digits.
Trait Implementations§
Source§impl Clone for OracleNumericInfo
impl Clone for OracleNumericInfo
Source§fn clone(&self) -> OracleNumericInfo
fn clone(&self) -> OracleNumericInfo
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 moreAuto Trait Implementations§
impl Freeze for OracleNumericInfo
impl RefUnwindSafe for OracleNumericInfo
impl Send for OracleNumericInfo
impl Sync for OracleNumericInfo
impl Unpin for OracleNumericInfo
impl UnwindSafe for OracleNumericInfo
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