pub enum Range {
    StringLiteralRange {
        start: String,
        end: String,
    },
    IntegerLiteralRange {
        start: i64,
        end: i64,
    },
    BytesLiteralRange {
        start: Bytes,
        end: Bytes,
    },
}
Expand description

A set of enums used to express range queries when it makes sense for that type.

Variants

StringLiteralRange

Fields

start: String

The starting String (inclusive)

end: String

The end String (exclusive)

Represents a String range using basic String comparisons.

IntegerLiteralRange

Fields

start: i64

The starting i64 (inclusive)

end: i64

The end i64 (exclusive)

Represents a String range using basic i64 comparisons.

BytesLiteralRange

Fields

start: Bytes

The starting Byte array (inclusive)

end: Bytes

The end Byte array (exclusive)

Represents a String range using basic Bytes comparisons.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.