Skip to main content

SelfAsScalarRef

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SelfAsScalarRef for &[u8]

Source§

fn as_scalar_ref(&self) -> Self

Source§

impl SelfAsScalarRef for &str

Source§

fn as_scalar_ref(&self) -> Self

Implementors§