datafusion_expr

Trait Literal

Source
pub trait Literal {
    // Required method
    fn lit(&self) -> Expr;
}
Expand description

Trait for converting a type to a Literal literal expression.

Required Methods§

Source

fn lit(&self) -> Expr

convert the value to a Literal expression

Implementations on Foreign Types§

Source§

impl Literal for &str

Source§

fn lit(&self) -> Expr

Source§

impl Literal for &String

Source§

fn lit(&self) -> Expr

Source§

impl Literal for &[u8]

Source§

fn lit(&self) -> Expr

Source§

impl Literal for ScalarValue

Source§

fn lit(&self) -> Expr

Source§

impl Literal for bool

literal expression containing a bool

Source§

fn lit(&self) -> Expr

Source§

impl Literal for f32

literal expression containing an f32

Source§

fn lit(&self) -> Expr

Source§

impl Literal for f64

literal expression containing an f64

Source§

fn lit(&self) -> Expr

Source§

impl Literal for i8

literal expression containing an i8

Source§

fn lit(&self) -> Expr

Source§

impl Literal for i16

literal expression containing an i16

Source§

fn lit(&self) -> Expr

Source§

impl Literal for i32

literal expression containing an i32

Source§

fn lit(&self) -> Expr

Source§

impl Literal for i64

literal expression containing an i64

Source§

fn lit(&self) -> Expr

Source§

impl Literal for u8

literal expression containing a u8

Source§

fn lit(&self) -> Expr

Source§

impl Literal for u16

literal expression containing a u16

Source§

fn lit(&self) -> Expr

Source§

impl Literal for u32

literal expression containing a u32

Source§

fn lit(&self) -> Expr

Source§

impl Literal for u64

literal expression containing a u64

Source§

fn lit(&self) -> Expr

Source§

impl Literal for String

Source§

fn lit(&self) -> Expr

Source§

impl Literal for Vec<u8>

Source§

fn lit(&self) -> Expr

Source§

impl Literal for NonZeroI8

literal expression containing an i8

Source§

fn lit(&self) -> Expr

Source§

impl Literal for NonZeroI16

literal expression containing an i16

Source§

fn lit(&self) -> Expr

Source§

impl Literal for NonZeroI32

literal expression containing an i32

Source§

fn lit(&self) -> Expr

Source§

impl Literal for NonZeroI64

literal expression containing an i64

Source§

fn lit(&self) -> Expr

Source§

impl Literal for NonZeroU8

literal expression containing a u8

Source§

fn lit(&self) -> Expr

Source§

impl Literal for NonZeroU16

literal expression containing a u16

Source§

fn lit(&self) -> Expr

Source§

impl Literal for NonZeroU32

literal expression containing a u32

Source§

fn lit(&self) -> Expr

Source§

impl Literal for NonZeroU64

literal expression containing a u64

Source§

fn lit(&self) -> Expr

Implementors§