pub trait Literal {
// Required method
fn lit(&self) -> Expr;
}
Expand description
Trait for converting a type to a Literal
literal expression.
convert the value to a Literal expression
literal expression containing a bool
literal expression containing an f32
literal expression containing an f64
literal expression containing an i8
literal expression containing an i16
literal expression containing an i32
literal expression containing an i64
literal expression containing a u8
literal expression containing a u16
literal expression containing a u32
literal expression containing a u64
literal expression containing an i8
literal expression containing an i16
literal expression containing an i32
literal expression containing an i64
literal expression containing a u8
literal expression containing a u16
literal expression containing a u32
literal expression containing a u64