pub enum IntegerType {
I32,
I64,
}Expand description
The types ๐๐ฅ๐ค and ๐๐จ๐ฆ classify 32 and 64 bit integers, respectively. Integers are not inherently signed or unsigned, their interpretation is determined by individual operations.
ยงExamples
use wasm_ast::{ValueType, NumberType, IntegerType};
assert_eq!(ValueType::I32, IntegerType::I32.into());
assert_eq!(NumberType::I32, IntegerType::I32.into());
assert_eq!(ValueType::I64, IntegerType::I64.into());
assert_eq!(NumberType::I64, IntegerType::I64.into());Variantsยง
Trait Implementationsยง
Sourceยงimpl Clone for IntegerType
impl Clone for IntegerType
Sourceยงfn clone(&self) -> IntegerType
fn clone(&self) -> IntegerType
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for IntegerType
impl Debug for IntegerType
Sourceยงimpl From<IntegerType> for NumberType
impl From<IntegerType> for NumberType
Sourceยงfn from(kind: IntegerType) -> Self
fn from(kind: IntegerType) -> Self
Converts to this type from the input type.
Sourceยงimpl PartialEq for IntegerType
impl PartialEq for IntegerType
impl Copy for IntegerType
impl Eq for IntegerType
impl StructuralPartialEq for IntegerType
Auto Trait Implementationsยง
impl Freeze for IntegerType
impl RefUnwindSafe for IntegerType
impl Send for IntegerType
impl Sync for IntegerType
impl Unpin for IntegerType
impl UnwindSafe for IntegerType
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