pub enum Literal {
F16(u16),
F32(f32),
F64(f64),
I8(i8),
I16(i16),
I32(i32),
I64(i64),
U8(u8),
U16(u16),
U32(u32),
U64(u64),
}Expand description
Specifies the value of a literal constant.
Variants§
F16(u16)
16-bit floating point literal.
Not representable in Rust without nightly.
F32(f32)
32-bit floating point literal.
F64(f64)
64-bit floating point literal.
I8(i8)
8-bit signed integer literal.
I16(i16)
16-bit signed integer literal.
I32(i32)
32-bit signed integer literal.
I64(i64)
64-bit signed integer literal.
U8(u8)
8-bit unsigned integer literal.
U16(u16)
16-bit unsigned integer literal.
U32(u32)
32-bit unsigned integer literal.
U64(u64)
64-bit unsigned integer literal.
Implementations§
Source§impl<'a> Literal
impl<'a> Literal
pub fn parse_one( module: &Module<'a>, stream: &mut InstructionStream<'a>, ctx: &mut ParseContext, ) -> ParseResult<Self>
Trait Implementations§
impl Copy for Literal
Auto Trait Implementations§
impl Freeze for Literal
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnsafeUnpin for Literal
impl UnwindSafe for Literal
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