pub trait CompatibleFloat {
    // Required methods
    fn to_float(t: Field128, c: u128) -> f64;
    fn to_field_integer(&self) -> <Field128 as FieldElementWithInteger>::Integer;
}
Available on crate feature experimental only.
Expand description

Assign a Float type to this type and describe how to represent this type as an integer of the given field, and how to represent a field element as the assigned Float type.

Required Methods§

source

fn to_float(t: Field128, c: u128) -> f64

Represent a field element as Float, given the number of clients c.

source

fn to_field_integer(&self) -> <Field128 as FieldElementWithInteger>::Integer

Represent a value of this type as an integer in the given field.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl CompatibleFloat for FixedI16<U15>

source§

impl CompatibleFloat for FixedI32<U31>

source§

impl CompatibleFloat for FixedI64<U63>

Implementors§