Skip to main content

LitTable

Trait LitTable 

Source
pub trait LitTable: TableHKT<Mode = ValueMode> {
    // Required method
    fn lit(self) -> Self::InMode<ExprMode>;
}
Expand description

Trait for tables containing values which we can turn into literals

Required Methods§

Source

fn lit(self) -> Self::InMode<ExprMode>

Lift a ValueMode table to an ExprMode table

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'scope, T: TableHKT<Mode = ValueMode> + MapTable<'scope>> LitTable for T