risingwave_common::types

Trait SelfAsScalarRef

source
pub trait SelfAsScalarRef {
    // Required method
    fn as_scalar_ref(&self) -> Self;
}
Expand description

To make sure there is as_scalar_ref for all scalar ref types. See https://github.com/risingwavelabs/risingwave/pull/9977/files#r1208972881

This is used by the expr macro.

Required Methods§

source

fn as_scalar_ref(&self) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SelfAsScalarRef for &str

source§

fn as_scalar_ref(&self) -> Self

source§

impl SelfAsScalarRef for &[u8]

source§

fn as_scalar_ref(&self) -> Self

Implementors§