[][src]Enum haybale_pitchfork::AbstractValue

pub enum AbstractValue {
    ExactValue(u64),
    Range(u64u64),
    Unconstrained,
    Named {
        name: String,
        value: Box<AbstractValue>,
    },
    EqualTo(String),
    SignedLessThan(String),
    SignedGreaterThan(String),
    UnsignedLessThan(String),
    UnsignedGreaterThan(String),
}

A variety of ways to specify a numerical value, from completely unconstrained to fully constrained.

Variants

ExactValue(u64)

This exact numerical value

Range(u64u64)

Any numerical value in the range (inclusive)

Unconstrained

Any value whatsoever

Named

A value with a (unique) name, so that it can be referenced in a Equal, SignedLessThan, SignedGreaterThan, etc.

If more than one AbstractValue is given the same name, they will implicitly be set equal to each other.

Fields of Named

name: Stringvalue: Box<AbstractValue>
EqualTo(String)

A value equal to the value with the given name

SignedLessThan(String)

A value signed-less-than the value with the given name

SignedGreaterThan(String)

A value signed-greater-than the value with the given name

UnsignedLessThan(String)

A value unsigned-less-than the value with the given name

UnsignedGreaterThan(String)

A value unsigned-greater-than the value with the given name

Implementations

impl AbstractValue[src]

pub fn named(name: &str, value: AbstractValue) -> Self[src]

Trait Implementations

impl Clone for AbstractValue[src]

impl Debug for AbstractValue[src]

impl Eq for AbstractValue[src]

impl PartialEq<AbstractValue> for AbstractValue[src]

impl StructuralEq for AbstractValue[src]

impl StructuralPartialEq for AbstractValue[src]

Auto Trait Implementations

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<T> From<T> for T[src]

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

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.