[][src]Struct lrl_test_compiler::environment::calibration::BooleanCalibration

pub struct BooleanCalibration {
    false_lower: u16,
    false_upper: u16,
    true_lower: u16,
    true_upper: u16,
}

Fields

false_lower: u16false_upper: u16true_lower: u16true_upper: u16

Implementations

impl BooleanCalibration[src]

pub fn read_from_file(file: &mut File) -> CompilerResult<Self>[src]

pub fn write_to_file(&self, file: &mut File) -> CompilerResult<()>[src]

Writes the lookup table to a file in a binary encoding.

fn parse_bool_case(
    expected_label: &str,
    line: String
) -> CompilerResult<(u16, u16)>
[src]

pub fn lookup(&self, x_val: u16) -> Option<bool>[src]

pub fn lower_bound(&self, y_val: bool) -> u16[src]

pub fn upper_bound(&self, y_val: bool) -> u16[src]

Trait Implementations

impl Clone for BooleanCalibration[src]

impl Debug for BooleanCalibration[src]

impl Eq for BooleanCalibration[src]

impl Hash for BooleanCalibration[src]

impl PartialEq<BooleanCalibration> for BooleanCalibration[src]

impl StructuralEq for BooleanCalibration[src]

impl StructuralPartialEq for BooleanCalibration[src]

Auto Trait Implementations

impl RefUnwindSafe for BooleanCalibration

impl Send for BooleanCalibration

impl Sync for BooleanCalibration

impl Unpin for BooleanCalibration

impl UnwindSafe for BooleanCalibration

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]