risingwave_common::types

Trait ScalarPartialOrd

source
pub trait ScalarPartialOrd: Scalar {
    // Required method
    fn scalar_cmp(&self, other: Self::ScalarRefType<'_>) -> Option<Ordering>;
}
Expand description

ScalarPartialOrd allows comparison between Scalar and ScalarRef.

TODO: see if it is possible to implement this trait directly on ScalarRef.

Required Methods§

source

fn scalar_cmp(&self, other: Self::ScalarRefType<'_>) -> Option<Ordering>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ScalarPartialOrd for bool

source§

fn scalar_cmp(&self, other: Self) -> Option<Ordering>

source§

impl ScalarPartialOrd for Box<str>

source§

fn scalar_cmp(&self, other: &str) -> Option<Ordering>

Implementors§