[][src]Enum ligature::Range

pub enum Range {
    LangLiteralRange {
        start: LangLiteral,
        end: LangLiteral,
    },
    StringLiteralRange {
        start: String,
        end: String,
    },
    LongLiteralRange {
        start: i64,
        end: i64,
    },
    DoubleLiteralRange {
        start: f64,
        end: f64,
    },
}

A set of enums used to express range queries when it makes sense for that type (ie no support for BooleanLiteralRange or UnknownLiteralRange since they don't make sense).

Variants

LangLiteralRange

Represents a range of LangLiterals Note: LangTag needs to match for any comparison to take place.

Fields of LangLiteralRange

start: LangLiteral

The starting LangLiteral (inclusive)

end: LangLiteral

The end LangLiteral (exclusive)

StringLiteralRange

Represents a String range using basic String comparisons.

Fields of StringLiteralRange

start: String

The starting String (inclusive)

end: String

The end String (exclusive)

LongLiteralRange

Represents a String range using basic i64 comparisons.

Fields of LongLiteralRange

start: i64

The starting i64 (inclusive)

end: i64

The end i64 (exclusive)

DoubleLiteralRange

Represents a String range using basic f64 comparisons.

Fields of DoubleLiteralRange

start: f64

The starting f64 (inclusive)

end: f64

The end f64 (exclusive)

Trait Implementations

impl Debug for Range[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, 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.