pub enum Literal<'ir> {
String(&'ir str),
Char(u8),
Float32(f32),
Float64(f64),
Bool(bool),
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
Int128(i128),
Array(usize, Vec<IRExpr<'ir>>),
Vector(Vec<IRExpr<'ir>>),
}Variants§
String(&'ir str)
Char(u8)
Float32(f32)
Float64(f64)
Bool(bool)
Bool is an i1.
Int8(i8)
Int16(i16)
Int32(i32)
Int64(i64)
Int128(i128)
Array(usize, Vec<IRExpr<'ir>>)
Vector(Vec<IRExpr<'ir>>)
Trait Implementations§
impl<'ir> StructuralPartialEq for Literal<'ir>
Auto Trait Implementations§
impl<'ir> Freeze for Literal<'ir>
impl<'ir> RefUnwindSafe for Literal<'ir>
impl<'ir> Send for Literal<'ir>
impl<'ir> Sync for Literal<'ir>
impl<'ir> Unpin for Literal<'ir>
impl<'ir> UnwindSafe for Literal<'ir>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more