pub struct Range {
pub start: Bound<Value>,
pub end: Bound<Value>,
}Expand description
A range of surrealql values,
Can be any kind of values, “a”..1 is allowed.
Fields§
§start: Bound<Value>§end: Bound<Value>Implementations§
Source§impl Range
impl Range
Sourcepub fn walk_revisioned_field_names(
wire_revision: u16,
) -> &'static [&'static str]
pub fn walk_revisioned_field_names( wire_revision: u16, ) -> &'static [&'static str]
Field names at the given wire revision in declaration order.
Returns an empty slice if the revision is unknown. Generated
by the revisioned derive.
Source§impl Range
impl Range
pub fn can_coerce_to_typed<T: Coerce>(&self) -> bool
pub fn coerce_to_typed<T: Coerce + HasKind>( self, ) -> Result<TypedRange<T>, CoerceError>
pub fn into_literal(self) -> Expr
Trait Implementations§
Source§impl<'de> BorrowDecode<'de, IndexFormat> for Range
impl<'de> BorrowDecode<'de, IndexFormat> for Range
fn borrow_decode(_r: &mut BorrowReader<'de>) -> Result<Self, DecodeError>
Source§impl<'de> BorrowDecode<'de> for Range
impl<'de> BorrowDecode<'de> for Range
fn borrow_decode(_r: &mut BorrowReader<'de>) -> Result<Self, DecodeError>
Source§impl DeserializeRevisioned for Range
impl DeserializeRevisioned for Range
Source§impl Encode<IndexFormat> for Range
impl Encode<IndexFormat> for Range
impl Eq for Range
Source§impl<T> From<TypedRange<T>> for Range
impl<T> From<TypedRange<T>> for Range
Source§fn from(value: TypedRange<T>) -> Self
fn from(value: TypedRange<T>) -> Self
Converts to this type from the input type.
Source§impl Ord for Range
impl Ord for Range
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq<Range> for RecordIdKeyRange
impl PartialEq<Range> for RecordIdKeyRange
Source§impl PartialOrd for Range
impl PartialOrd for Range
Source§impl Revisioned for Range
impl Revisioned for Range
Source§impl SerializeRevisioned for Range
impl SerializeRevisioned for Range
Source§impl SkipCheckRevisioned for Range
impl SkipCheckRevisioned for Range
Source§impl SkipRevisioned for Range
impl SkipRevisioned for Range
fn skip_revisioned<R: Read>(reader: &mut R) -> Result<(), Error>
Source§fn skip_revisioned_slice(reader: &mut SliceReader<'_>) -> Result<(), Error>
fn skip_revisioned_slice(reader: &mut SliceReader<'_>) -> Result<(), Error>
Consume through bytes backed by
SliceReader without allocating a buffer for bulk segments. Read moreimpl StructuralPartialEq for Range
Source§impl WalkRevisioned for Range
impl WalkRevisioned for Range
Source§type Walker<'r, R: BorrowedReader + 'r> = RangeWalker<'r, R>
type Walker<'r, R: BorrowedReader + 'r> = RangeWalker<'r, R>
Walker produced by
walk_revisioned. Read moreSource§fn walk_revisioned<'r, R: BorrowedReader>(
reader: &'r mut R,
) -> Result<Self::Walker<'r, R>, Error>
fn walk_revisioned<'r, R: BorrowedReader>( reader: &'r mut R, ) -> Result<Self::Walker<'r, R>, Error>
Read the type’s revision-level prefix and return a walker positioned at
the start of the body. Read more
Auto Trait Implementations§
impl !Freeze for Range
impl !RefUnwindSafe for Range
impl !UnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnsafeUnpin for Range
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.